Answered step by step
Verified Expert Solution
Link Copied!

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. image text in transcribed
image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Transact SQL Cookbook Help For Database Programmers

Authors: Ales Spetic, Jonathan Gennick

1st Edition

1565927567, 978-1565927568

More Books

Students also viewed these Databases questions

Question

Which period is known as the chalolithic age ?

Answered: 1 week ago

Question

Explain the Neolithic age compared to the paleolithic age ?

Answered: 1 week ago

Question

2. Do you find change a. invigorating? b. stressful? _______

Answered: 1 week ago