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](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f320ed51ea1_70866f320ecc361f.jpg)
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
Get step-by-step solutions from verified subject matter experts
