Question
Get input and output using cin and cout Create a program that: Converts temperatures from Fahrenheit to Celsius o Asks the user for a Fahrenheit
Get input and output using cin and cout
Create a program that:
Converts temperatures from Fahrenheit to Celsius
o Asks the user for a Fahrenheit temperature
o Uses the formula C = (F 32) * 5 / 9 to calculate the Celsius conversion of the Fahrenheit temperature
Prints the Celsius equivalent of the given Fahrenheit
Program output should look something like this:
Enter a temperature in degrees Fahrenheit:
98
The temperature is 36 degrees Celsius
press any key to continue
Extra:
modify the program to ask which conversion to do: Fahrenheit to Celsius, or Celsius to Fahrenheit.
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