Question: Write a program called Fahrenheit2Celsius that converts a temperature in Fahrenheit to Celcius.Your program must declare two double variables named fahrenheit and celcius and one
Write a program called Fahrenheit2Celsius that converts a temperature in Fahrenheit to Celcius.Your program must declare two double variables named fahrenheit and celcius and one Scaner variable named input. Declare variables in the order listed. Declare fahrenheit and celcius on the same line and initialize to 0.0. The program will prompt the user for temperature in Fahrenheit and read the input from the keyboard storing the value in in the fahrenheit variable. The Celsius temperature is calculated by (fahrenheit - 32) times 5/9. The result is stored in the variable celcius. The required output is provided. The "Yes" is not used.
OUTPUT:
Enter a temperature in degrees Fahrenheit to convert : 50
50.0 degrees Fahrenheit converts to 10.0 degrees Celcius.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
