0:00
Hello.
00:01
For problem 1t, you are referring to exercise 2 .9, which gives a formula that allows you to compute wind chill temperatures.
00:12
But we know that the formula will only work if the temperature is between negative 58 degrees fahrenheit and positive 41 degrees fahrenheit.
00:23
And if the wind speed is greater than or equal to 2.
00:28
So we want to write a program that's going to ask a user for a temperature and wind speed and then display the wind chill temperature if the inputs are valid and display an indication that the inputs were invalid if they are invalid.
00:46
So we'll start by receiving the temperature and wind speed from the user.
00:51
I'm labeling temperature t and wind speed ws.
00:54
So t and ws will be equal to eval of the input.
00:58
From enter a temperature and wind speed.
01:02
And then we need to now check if they are valid.
01:05
So if temperature is greater than negative 58 and temperature is less than 41 and the wind speed is greater than or equal to two, then our inputs are valid.
01:17
Wind chill temperature is going to be given by the equation in the book...