Search for question
Question

Q2 HeatIndex3 (improving HeatIndex2 using functions)

30 Points

Purpose: Make a program you've written simpler to read and maintain by adding

functions.

On Problem 3.2 of PS3, you wrote Heat Index2.1pynb, a heat index calculator that reported the heat

index given a user's input of temperature and relative humidity. Here, you will produce the third

version of this program, Heat Index3.spynb, which will be improved by using functions.

Specifically, you will write two functions that encapsulate the main computations of the

program.

Q2.1

10 Points

(a) write (and comment) a function, teadman, that takes air temperature and relative humidity as

inputs and returns the Steadman formula value of the heat index

Cut-and-paste the code for just that COMMENTED steadsan function in the box below.

Save Answer

Fig: 1