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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!