Question: Your script should ask the user for a minimum Celsius temperature and then a maximum Celsius temperature. It should then print out a Celsius to

Your script should ask the user for a minimum Celsius temperature and then a maximum Celsius temperature. It should then print out a Celsius to Fahrenheit conversion table for this range of Celsius temperatures. This script must contain two functions

print_table_line

print_conversion_table

print_table_line

This function must have the following header

def print_table_line(celsius) 

This function prints one line in the table. The line consists of the Celsius temperature, a tab, and the Fahrenheit temperature. It should print a line that looks like this

0 32 

In order to do this, the function must first convert the Celsius temperature into a Fahrenheit value. Both temperatures must be integers.

print_conversion_table

This function must have the following header

def print_table_line(celsius) 

This function does four things

Prints the words "Celsius" and "Fahrenheit" to label the columns

Prints a line of dashes, -

Have a for loop

Call print_table_line(celsius) inside the loop

The for loop variable must range from the minimum Celsius temperature to the maximum Celsius temperature. Each pass through the loop must call print_table_line(celsius) with a Celsius value.

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!