Ask Question
23 July, 22:34

Given the already defined variables temperature and humidity, write an expression that evaluates to True if and only if temperature is greater than 90 and humidity is less than 10.

+1
Answers (1)
  1. 24 July, 01:17
    0
    if (temperature>90 &&humidity<10)

    Explanation:

    A complete program in java that requests user to enter the value for temperature and humidity is given below. If the above condition is true it outputs "TRUE" else it outputs "FALSE"

    import java. util. Scanner;

    public class num8 {

    public static void main (String[] args) {

    Scanner in = new Scanner (System. in);

    System. out. println ("enter temperature and humidity");

    double temperature = in. nextDouble ();

    double humidity = in. nextDouble ();

    if (temperature>90 &&humidity<10) {

    System. out. println ("TRUE");

    }

    else

    {

    System. out. println ("FALSE");

    }

    }

    }
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “Given the already defined variables temperature and humidity, write an expression that evaluates to True if and only if temperature is ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers