Question: whenever I run my program, it always states that the temperature is at or below freezing. how can I run it where temperatures above 32

whenever I run my program, it always states that the temperature is at or below freezing. how can I run it where temperatures above 32 will display "temperature is not a freezing temperature". I know my problem lies in my condition statement but cannot figure out the solution.  whenever I run my program, it always states that the temperature
is at or below freezing. how can I run it where temperatures

Socumentacion GRASP CSDD ng Tools Windows at java.util.Scanner ring in the screen 4 Purpose 5 tette: 2/26/21 2 thos randon Whitlock 9 10 public class Freezing 11 12 public static void main(Strinelares) 13 14 int tout5: 15 int total 0 19 Scanner in Scanner(Systein). fortint temp - 0; tempt topmoont: tepi -> Moto determine the few are calculate System.out.printlntures free) total in.nextInt() 21 22 23 24 LF (tempomount Please enter a number in fahrenheit: 5 Temperature is at or below freezing Please enter a number in fahrenheit: 38 1 Temperature is at or below freezing GRASP: operation complete. L o TI a

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!