Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

using python. 1. Only write the python code for this exercise, no other representations necessary 2. Create an array for the 14 days of the

using python.

image text in transcribed

1. Only write the python code for this exercise, no other representations necessary

2. Create an array for the 14 days of the two weeks using the random number generator ( these are interpreted as the 14 highest wind speeds . ( use a fixed" random.seed" of 42 so that you will get a constant sequence of values each time you run this, so you can calculate and check)

Now , out of those 14 values, find the highest, and then the lowest. Next find the average of all 14 values.

Print these out in an intelligible manner.

Modify the random function to return values in the range of 0 to 30 ( representing highest wind speeds) See assignment 7. and 7.5 for hint on the random functions Use this function to populate your array and then calculate the requirements of Mr. John.

John has a weather station in his house. He has been keeping track of the fastest wind speed for each day for two weeks. He would like to know the average wind speed over the two weeks, the days on which the highest wind speed and the lowest wind speed were recorded, and the difference between the highest wind speed recorded and each day's average wind speed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Processing

Authors: David M. Kroenke, David Auer

11th Edition

B003Y7CIBU, 978-0132302678

More Books

Students also viewed these Databases questions

Question

What happens when carbonate and hydrogen react with carbonate?

Answered: 1 week ago

Question

What are Decision Trees?

Answered: 1 week ago

Question

What is meant by the Term Glass Ceiling?

Answered: 1 week ago