Python: Science: Wind-Chill Temperature

less than 1 minute read

The code has been modified slightly and now uploaded to the site.

The questions are from the C++ Textbook.

Question

<— Return Home

29.py (should have been named 217.py)

import math

t_a = float(input("Enter the temperature in Fahrenheit between -58 and 41: "))
if (t_a > 41 or t_a < -58):
    print("PLEASE ENTER THE APPROPRIATE NUMBER YOU DONKEY!")
    quit()
v = float(input("Enter the wind speed in miles per hour: "))
t_wc = 35.74 + (0.6215 * t_a) - (35.75 * math.pow(v, 0.16)) + (0.4275 * t_a * math.pow(v, 0.16))
print("The wind chill index is " + str(t_wc))

<— Return Home