Question: Write a program that reads a Celsius degree in a double value from the console, then converts it to Fahrenheit and displays the result. The
Write a program that reads a Celsius degree in a double value from the console, then converts it to Fahrenheit and displays the result. The formula for the conversion is as follows:
fahrenheit = (9 / 5) * celsius + 32
In Java, 9 / 5 is 1, but 9.0 / 5 is 1.8.
Here is a sample run:
Enter a degree in Celsius: 43
43 Celsius is 109.4 Fahrenheit
Step by Step Solution
3.25 Rating (171 Votes )
There are 3 Steps involved in it
Program Plan Prompt user to enter a degree in Celsius Convert the temperature from degrees Celsius t... View full answer
Get step-by-step solutions from verified subject matter experts
