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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started