Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a Python program that does the following: 1. Prompt the user to enter the Celsius, which is a float number. 2. Prompt the
Write a Python program that does the following: 1. Prompt the user to enter the Celsius, which is a float number. 2. Prompt the user to enter a choice which is an integer, 1 for yes, 0 for no, any other number will be considered as error. the user enters 1: Using an if/elif/else control structure, do the following: 3. If temperature in Celsius is less than 20 then assign to the variable status the value Cold weather 4. If Temp is from 20-30 then assign Normal to the variable status. 5. If Temp is larger than 30, then assign Hot to the variable status. 6. Using f'string display the Celsius given by the user, the equivalent in Fahrenheit, Rankine (R) and the status (use only one print). the user enters 0, the program should display only the Celsius given by the user, the equivalent in heit, Rankine (R) (without the status). - any other number, the system should display the message 'error, please enter 1 or 0'. ote:Fahrenheit -Celsius * 1.8 +32 and Rankine 9/5 (Celsius + 273.15) The output should be as below: enter a choice: 1 for 'YES' e for 'NO' 1 the temperature in Celisus-39.0, Fahrenheit-102.2,Rankine-561.87, and the status is Hot. enter a number5 enter a choice: 1 for 'YES' for 'NO' 45 error, please enter 1 or 0 enter a number19 enter a choice: 1 for 'YES' for 'Ne' 8 the temperature in Celisus-19.0, Fahrenheit=66.2, Rankine-525.87
Step by Step Solution
★★★★★
3.36 Rating (149 Votes )
There are 3 Steps involved in it
Step: 1
Heres a Python program that implements the described functionality def calculatestatusanddisplaycels...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