Answered step by step
Verified Expert Solution
Question
1 Approved Answer
writing a small program, NOT a not a user-defined function. For this problem, you will modify your Heat Index program from Problem Set 2
writing a small program, NOT a not a user-defined function. For this problem, you will modify your Heat Index program from Problem Set 2 (Problem 2.4) to use the full algorithm outlined the National Weather Service: https://www.wpc.ncep.noaa.gov/html/heatindex_equation.shtml Follow this high-level pseudocode, which is based on that page: 1. Compute the Heat Index HI using the Steadman formula [the last equation, as in PS 2.4] 2. Compute the average of T and HI 3. If this is less than 80, set HI_final to that average 4. Else, compute the alternate HI given in the first equation (on the NOAA webpage, that is, the "full regression" equation) 5. Based on the situation, compute the appropriate adjustment 6. Add any adjustment (or 0) to the alternate HI, calling the result HI_final 7. Print the value of HI_final, after rounding it to the nearest integer First, expand the pseudo-code above by writing more details for Step 5, labeled 5a, 5b, etc. Then, copy your Beat Index program from PS2 into one called Heat Indexz. Write the additional code. Remember that Python has and and or for combining boolean conditions. Calculate your answers for the following input values: TRE 74 90 90 60 85 90 95 10 Turn In: Text of your pseudocode for just 5a, 5b, etc. Cut-and-paste of your modified program The four answers your program gave on the test inputs above.
Step by Step Solution
★★★★★
3.54 Rating (144 Votes )
There are 3 Steps involved in it
Step: 1
Heres the expanded pseudocode for Step 5 labeled 5a and 5b 5 Based on the situation 5a If T 80 i Set ...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started