Question: Assignment id: ola Assignment type: Project Required Files: ola3.py, myout.log Lab description: For this lab, write a complete Python script that converts Celsius temperatures, input
Assignment id: ola Assignment type: Project Required Files: ola3.py, myout.log Lab description: For this lab, write a complete Python script that converts Celsius temperatures, input by the user, to Fahrenheit temperatures. The formula is as follows: FC 32 5 Your program should ask the user to enter a temperature in Celsius, and then display the temperature in Fahrenheit. Format your output to two decimal places (see example below). If the temperature is below 32 degrees Fahrenheit, you should display the message Brrrl Dress warmly!" (excluding quotes) If the temperature is above 90 degrees Fahrenheit, you should display the message Whew! Drink lots of water!" (excluding quotes) At the end, regardless of the temperature value, display the message "Have a nice day!" (excluding quotes) Run your program three times with different input values for the Celsius temperature Sample Outputs: Here are the results from running a sample program three times: c8093900@ranger2: Infshome/c8093900/OLA 305 ranger2$ python3 ola2.py Enter the temperature in Celsius: 12 temperature in Fahrenheit is 53.60 degrees Have a nice day! 306 ranger2s python3 ola2.py Enter the temperature in Celsius: 5 temperature in Fahrenheit is 23.00 degrees Brrr! Dress warmly! Have a nice day! 307 ranger2s python3 ola2.py Enter the temperature in Celsius: 42.3 temperature in Fahrenheit is 108.14 degrees ! Drink lots of water! Have a nice day! 08 ranger2s
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
