The document describes a Python program to calculate and display wind chill temperature index. It provides sample wind chill values for different temperature and wind speed combinations. It then prompts the user to input a temperature and wind speed value, calculates the wind chill temperature using the appropriate formula, and displays the result. The program is subdivided into two parts - the first displays sample values, and the second prompts user input and performs the calculation.
Fostering Friendships - Enhancing Social Bonds in the Classroom
Write a Python program to display the wind chill temperature index - F.docx
1. Write a Python program to display the wind chill temperature index . First perform the
appropriate calculations and display the corresponding wind chill temperature index: 10.0
degrees, and 15 MPH 0.0 degrees and 25 MPH -10.00 degrees and 35 MPH. Second, after
calculation, prompt the user to enter an air temperature measurement (Tair) and accept a floating
point value representing that measurement. prompt the user to enter a wind speed (Vwind) and
accept a floating point value. Please subdivided into two parts.
(all temperature in Fahrenheit scale)
Solution
import math
temp = float(raw_input("Please Enter the temprature in F : "))
windspeed = float(raw_input("Please Enter the wind speed in MPH : "))
windpower = windspeed**(0.16)
a = 0.6215*temp
b = 0.4275*temp
c = b*windpower
d = 35.75*windpower
result = 35.74+a-d+c
print result
import math
temp = float(raw_input("Please Enter the temprature in F : "))
windspeed = float(raw_input("Please Enter the wind speed in MPH : "))
windpower = windspeed**(0.16)
a = 0.6215*temp
2. b = 0.4275*temp
c = b*windpower
d = 35.75*windpower
result = 35.74+a-d+c
print result
import math
temp = float(raw_input("Please Enter the temprature in F : "))
windspeed = float(raw_input("Please Enter the wind speed in MPH : "))
windpower = windspeed**(0.16)
a = 0.6215*temp
b = 0.4275*temp
c = b*windpower
d = 35.75*windpower
result = 35.74+a-d+c
print result