Ask Question
31 December, 23:43

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.

+4
Answers (1)
  1. 31 December, 23:45
    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 & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers