Question: Needs to be in C + + Write a program that converts temperature from Fahrenheit to Celsius and vice versa. The program will accept a

Needs to be in C++
Write a program that converts temperature from Fahrenheit to Celsius and vice versa.
The program will accept a number (temperature) and a temperature unit designation (i.e., character F or C) from the user, and then convert the temperature into the other unit system. The program will echo the input as part of the final conversion output. The temperature units should be printed in full (Fahrenheit or Celsius). Your program should use real numbersnot integersfor both input and output.
Formula:
T(F)=(T(C)*9/5)+32
T(C)=(T(F)32)*5/9
Sample Run:
This program converts Temperatures from Fahrenheit to Celsius and vice versa.
Please enter your temperature: 32
Please enter the units (F/C): F
A temperature of 32 degrees Fahrenheit is equivalent to 0degrees Celsius.
Do you want another conversion? (Y/N): Y
Please enter your temperature: 100
Please enter the units (F/C): C
A temperature of 100 degrees Celsius is equivalent to 212degrees Fahrenheit.
Do you want another conversion? (Y/N): N
Thank you. Goodbye.

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 Programming Questions!