Question: Write a program that will be an improved version of the temperature converter created in Lab 1 . It will support converting between Fahrenheit, Celsius,
Write a program that will be an improved version of the temperature converter created in Lab It will support converting between Fahrenheit, Celsius, and Kelvin.
Use the following conversions:
Unit
Conversion to Celsius
Fahrenheit
degreesfahrenheit
Celsius
degreescelsius
Kelvin
degreeskelvin
All outputs should be rounded to one decimal place.
Input:
Enter the unit you are converting from:
Enter the unit you are converting to:
Enter the temperature in unitfrom:
Output:
That is temperature degrees unitto
You may assume:
The first two inputs will be either FahrenheitCelsius or Kelvin
Pay attention to the capitalization
The third input will be a valid number
Examples:
Enter the unit you are converting from: Fahrenheit
Enter the unit you are converting to: Kelvin
Enter the temperature in Fahrenheit:
That is degrees Kelvin.
Enter the unit you are converting from: Celsius
Enter the unit you are converting to: Celsius
Enter the temperature in Celsius:
That is degrees Celsius.
Enter the unit you are converting from: Kelvin
Enter the unit you are converting to: Fahrenheit
Enter the temperature in Kelvin:
That is degrees Fahrenheit.
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
