Question
Write a program that prompts the user to enter a numeric temperature value that may be a float. A second prompt should then ask the
Write a program that prompts the user to enter a numeric temperature value that may be a float. A second prompt should then ask the user to indicate whether the user wants the entered temperature value converted to degrees Celsius or degrees Fahrenheit by entering either an 'F' or a 'C' for a second prompt. Have your converted values be floats rounded to 1 decimal place. The F or C entry should be case-insensitive. The user should be able to enter F or f for a Fahrenheit conversion, or a C or c for a Celsius conversion. But if the user doesn't enter an F, f, C or c, then display an error message and exit the program rather than performing the calculation Use the decision structure of your choosing to determine whether to convert the input value to degF or degC or to exit. Your output should contain both the original temperature entered and the proper output temp, labeled as to which is which. Something like this: 212 degrees F = 100.0 degrees C Your Python file needs to have a comment near the top giving your full name and the assignment number. Please don't turn in a program without a name.
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