Question: 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

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

1 Expert Approved Answer
Step: 1 Unlock

Heres a Python program that implements the described functionality def calculatestatusanddisplaycels... View full answer

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 Programming Questions!