Question: Write a python program that converts Fahrenheit temperatures into their Kelvin equivalent. The formula to use is: Kelvin = (Fahrenheit 32) 5/9 + 273.15 Items

Write a python program that converts Fahrenheit temperatures into their Kelvin equivalent.

The formula to use is:

Kelvin = (Fahrenheit 32) 5/9 + 273.15

Items to include in the program:

  • A main function
  • User input of how many Fahrenheit temperatures to convert
    • A suitable description of what the user is to enter
  • Use a loop (your choice of for or while)
    • The number of temperatures entered will be the number of times the loop iterates, calculating a new temperature each time
  • Print the results
  • A heading used in the printing of the results
    • See the example below
  • The results should be displayed neatly
  • Format the results with 3 decimal places
  • A comment header
  • Comments throughout the program
  • Write the code neatly
  • Do not allow unhandled exceptions

Example of program input and output

Enter the number of temperatures to convert: 10

Fahrenheit Kelvin

------------------------------------------

0 255.372

1 255.928

2 256.483

3 257.039

4 257.594

5 258.150

6 258.706

7 259.261

8 259.817

9 260.372

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!