writing a small program, NOT a not a user-defined function. For this problem, you will modify...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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. 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.
Expert Answer:
Answer rating: 100% (QA)
Heres the expanded pseudocode for Step 5 labeled 5a and 5b 5 Based on the situation 5a If T 80 i Set ... View the full answer
Related Book For
Managerial Economics
ISBN: 978-0133020267
7th edition
Authors: Paul Keat, Philip K Young, Steve Erfle
Posted Date:
Students also viewed these programming questions
-
The business was established via the receipt of $29 000 of cash and issuance of common stock to the investor. Next the business paid $2 600 in rent for the first month of operations and $14 000 of...
-
Start of Payroll Project 7-3a October 9, 20-- No. 1 The first payroll in October covered the two workweeks that ended on September 26 and October 3. This payroll transaction has been entered for you...
-
Company History. Wawa Wild Wings, (WWW) was formed in 1980 by 3 residents of the town of Wawa Ontario, located about 230 kilometers north of Sault Ste. Marie Ontario. The 3 equal partners are Cosmo...
-
For the spherical coordinate system (R, , ) in Fig. 1.6, show that: Fig 1.6 X @3 0 Ex R e2 en ee X2
-
The 192-N load is removed and a 288 N m clockwise couple is applied successively at A, D, and E. Determine the components of the reactions at B and F when the couple is applied (a) At A, (b) At B,...
-
The following pseudocode describes how to turn a string containing a ten-digit phone number (such as "4155551212") into a more readable string with parentheses and dashes, like this: "(415)...
-
Shown below is part of a questionnaire used to determine consumer preferences for digital cameras. Set up a coding scheme for the following three questions (Q9, Q10, and Q11). Note that the first...
-
P&G would like to conduct a survey of consumer preferences for toothpaste brands in California. Stratified random sampling will be used. Visit www.census.gov to identify information that will be...
-
A company has total fixed costs of $252000 and a contribution margin ratio of 25%. What is the total sales necessary to break even?
-
The information provided in this test allows you to set up the Cieneral, Payables and Receivables ledgers for an Ontario company named CHRIS'S WELDING owned and run by Chris George, amaster welder....
-
Kate thinks if the separation becomes permanent, she will be able to pay the debt with the 50% her best friend told her she should get from a property settlement with Mark. What Kate didn't tell her...
-
Explain how rapid population growth can contribute to rapid economic growth even when Solow and other models all show that population growth reduces the level of income in the early stage.
-
How might leaders cultivate a culture of delegation within their teams, fostering a climate of trust, mutual respect, and open communication wherein team members feel empowered to take ownership of...
-
State the values you possess. Include the things that influenced your values and how they affect your decisions in your moral life.
-
Explain what happens when a supply curve and a demand curve intersect one another. Does this happen in the real world of life?
-
Why does every economy have a natural rate of unemployment (NRU)? Can the actual unemployment rate measured by Statistics Canada be greater or lesser than the NRU. If so, why
-
Classify the given animals on basis of their symmetry. Starfish, cockroach, calotes, sponges, hydra, earthworm
-
Use translations to graph f. f(x) = x-/2 +1
-
Define the guiding or allocating junction of price.
-
Discuss the differences between the short run and the long run from the perspective l producers and from the perspective of consumers.
-
Briefly discuss the Coase theorem. What does this theory imply about the role of government in dealing with market externalities?
-
Explain what it means to disestablish paternity. Identify some of the common arguments in favor of and against disestablishment.
-
Identify the three parties with the strongest interests in parentage determinations and describe the nature of those interests.
-
Describe the equitable parent doctrine and explain how it was applied by the Wisconsin Supreme Court in Ay val.
Study smarter with the SolutionInn App