Question: Write a program that will support converting between Fahrenheit, Celsius, and Kelvin. Use the following conversions: Unit Conversion to Celsius Fahrenheit ( degrees _ fahrenheit

Write a program that will support converting between Fahrenheit, Celsius, and Kelvin.
Use the following conversions:
Unit
Conversion to Celsius
Fahrenheit
(degrees_fahrenheit -32)*5/9
Celsius
degrees_celsius
Kelvin
degrees_kelvin -273.15
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 {unit_from}:
Output:
That is {temperature} degrees {unit_to}.
You may assume:
The first two inputs will be either Fahrenheit,Celsius, 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: -40.5
That is 232.9 degrees Kelvin.
Enter the unit you are converting from: Celsius
Enter the unit you are converting to: Celsius
Enter the temperature in Celsius: 20
That is 20.0 degrees Celsius.
Enter the unit you are converting from: Kelvin
Enter the unit you are converting to: Fahrenheit
Enter the temperature in Kelvin: 350
That is 170.3 degrees Fahrenheit.
PLEASE MAKE SURE THAT I CAN COPY AND PAYSTE THE CODE. THANK YOU.

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!