IS5103 Week 2 Solutions
1. What is the output of the following code snippet? 1. int temperature = 4; 2. long humidity = -temperature + temperature * 3; 3. if (temperature>=4) 4. if (humidity < 6) System.out.println(“Too Low”); 5. else System.out.println(“Just Right”); 6. else System.out.println(“Too High”); Just Right 2. What…