Question: Project # 6 : Temperature Converter Write a Python program that converts temperatures from Celsius to Fahrenheit and vice versa. The program should handle invalid
Project #: Temperature Converter
Write a Python program that converts temperatures from Celsius to Fahrenheit and vice versa. The program should handle invalid inputs and exceptions.
Instructions:
Ask the user for the temperature and the unit of measurement Celsius or Fahrenheit
Use exception handling to catch invalid inputs and exceptions that may occur in the conversion process.
If the input is invalid eg a nonnumeric value is entered display an error message and prompt the user to enter the temperature and unit again.
If the unit of measurement is Celsius, convert the temperature to Fahrenheit using the following formula: F C
If the unit of measurement is Fahrenheit, convert the temperature to Celsius using the following formula: C F
Display the result of the conversion to the user.
Repeat the process until the user enters quit as the temperature.
Submit your Python code with applicable screen images showing the execution of your program.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
