Question
IN PYTHON Specification Your script should ask the user for a minimum Celsius temperature and then a maximum Celsius temperate. It should then print out
IN PYTHON
Specification
Your script should ask the user for a minimum Celsius temperature and then a maximum Celsius temperate. It should then print out a Celsius to Fahrenheit conversion table for this range of Celsius temperatures. The table should have the same format as in homework 5. The script must have two functions, print_fahrenheit and print_conversion_table. print_fahrenheit must take as its parameter the Celsius temperature and print a line of the table with the Celsius temperature, a tab, and then the Fahrenheit temperature. print_conversion_table must take two arguments, the minimum and maximum Celsius temperature in the table. print_conversion_table must print the header for the table and call print_fahrenheit to print each line of the table.
Testing
Your output should look something like this
python3 hw6.py Please enter the starting temperature for the table: 10 Please enter the ending temperature for the table: 15 Celsius Fahrenheit ------------------ 10 50 11 52 12 54 13 55 14 57 15 59
I have tried but haven't come with a solution.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started