Ask Question
31 January, 04: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.

+3
Answers (1)
  1. 31 January, 07:31
    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?
Get 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 there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers