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 ie 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:
TFTC
TCTF
Sample Run:
This program converts Temperatures from Fahrenheit to Celsius and vice versa.
Please enter your temperature:
Please enter the units FC: F
A temperature of degrees Fahrenheit is equivalent to degrees Celsius.
Do you want another conversion? YN: Y
Please enter your temperature:
Please enter the units FC: C
A temperature of degrees Celsius is equivalent to degrees Fahrenheit.
Do you want another conversion? YN: N
Thank you. Goodbye.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
