Question: #Python Wind chill temperature can be calculated using the temperature (temp) and wind speed (velocity). The temperature is in Fahrenheit. The formula is WindChill =

#Python

Wind chill temperature can be calculated using the temperature (temp) and wind speed (velocity). The temperature is in Fahrenheit. The formula is

WindChill = 35.74 + 0.6215*temp 35.75*velocity**0.16 + 0.4275*temp*velocity**0.16

This formula is valid for temperatures in the range between -58 degrees Fahrenheit and 41 degrees Fahrenheit and for wind speed greater than or equal to 2 mph.

Write a program that prompts the user to enter a temperature and a wind speed. The program checks if the input is valid. If it is, the wind-chill temperature is displayed. If not, the message indicates whether the temperature and/or wind speed is invalid.

Using your program, check the input using exception handling. One exception is to catch the users entering characters instead of numbers. Use an existing exception class for this error.

For their entering a temperature or wind speed out of acceptable range, use the method that is, have one except clause to cover both, and raise the exception with an appropriate text to indicate the error.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!