Question: Question 2 [25 pts]: Write a Java program that Prompts the user to enter a value for temperature in Celsius, The program calculates the value

 Question 2 [25 pts]: Write a Java program that Prompts the

Question 2 [25 pts]: Write a Java program that Prompts the user to enter a value for temperature in Celsius, The program calculates the value of the temperature in Fahrenheit. fahrenheit = celsius * (9.0/5.0) + 32 If the temperature in Fahrenheit is less than 40 the program prints: It is cold. Otherwise, it will prints: It is hot. Finally, the program prints the temperature in Fahrenheit. Sample Run 1: Enter a value for temperature in Celsius: 4 It is cald. The temperature in Fahrenheit is: 39.2 Sample Run 2: Enter a value for temperature in Celsius: 35 It is hot, The temperature in Fahrenheit is: 95.0 Sample Run 3: Enter a value for temperature in Celsius: 20 The temperature in Fahrenheit is: 68.0 public class Temperature public static void main(String llargs)

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!