Question: Using Python: Write a program to use three functions: 1) A function explaining what the purpose of the program 2) Allow the user to input

Using Python:

Write a program to use three functions:

1) A function explaining what the purpose of the program

2) Allow the user to input a temperature in Celsius and print the corresponding temperature in Fahrenheit

3) Allow the user to input a temperature in Fahrenheit and print the corresponding temperature in Celsius

Write a main program which will:

First, call the function written in part 1 to print the introduction.

Then ask the user to input either:

a) a C if they want to convert a Celsius temperature to Fahrenheit; in which case you will call the function written in part 2;

Or

b) an F if they want to convert a Fahrenheit temperature to Celsius; in which case you will call the function in part 3 or

If the input is:

F

212

The output should be:

This program will allow the user to enter either F for Fahrenheit or C for Celsius.

The temperature will be converted.

Enter an F if the temperature to be converted is in Fahrenheit and a C if the temperature is in Celsius

Enter the Fahrenheit temperature

212 in Fahrenheit is equivalent to 100 in Celsius

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!