Menu

[Solved]John Weather Station House Keeping Track Fastest Wind Speed Day Two Weeks Would Like Know Q37156592

John has a weather station in his house. He has been keepingtrack of the fastest wind speed for each day for two weeks. Hewould like to know the average wind speed over the two weeks, thedays on which the highest wind speed and the lowest wind speed wererecorded, and the difference between the highest wind speedrecorded and each day’s average wind speed.

Only write the python code for this exercise

Create an array for the 14 days of the two weeks using therandom number generator ( these are interpreted as the 14

highest wind speeds . ( use a fixed” random.seed” of 42 so thatyou will get a constant sequence of values each time you run this,so you can calculate and check)

Use a for loop for this.

Now , out of those 14 values, find the highest, and then thelowest.

Next find the average of all 14 values.

Print these out in an intelligible manner.

Modify the random function  to return values in therange of 0 to 30 ( representing highest wind speeds) See assignment7. and 7.5 for hint on the random functions

Use this function to populate your array and then calculate therequirements of Mr. John.

Expert Answer


Answer to John has a weather station in his house. He has been keeping track of the fastest wind speed for each day for two weeks…. . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *