Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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. 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
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.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started