Menu

[Solved]-Q2 Winds Garden Department Sells Wind Chimes Withstand Winds Including 50 Mph Simulate Lis Q37228187

Q2 Winds

The garden department sells wind chimes that can withstand windsup to, and including, 50 mph.
You are to simulate a list of 7 random wind speeds between 20 and60 mph. To insure you get the same random stream each run, inserta
random.seed(1) at the start of your function.
a. Write the function that will construct and return alist of 7 random numbers between 20 and 60 mph.

Q3 Wind Chimes Stress Test (20 points)
a.Call your Q2 function that returns a list of 7 random numbers.Assign that result to a list called testWinds
b. print out that list, properly identified
b. write a for loop that will go through your testWinds and totalup the
number of wind speeds over 50 mph
c. Print out that total properly identified

#Q3 wind chimes stress test
testWinds = windSpeeds()
print(“testWinds ” , testWinds)

total = 0
for x in testWinds:

if x > 50:
total = total + 1
print(“there are “, total , ” wind speeds over 50 mph”)

Python & pseudocode please and thankyou

Expert Answer


Answer to Q2 Winds The garden department sells wind chimes that can withstand winds up to, and including, 50 mph. You are to simul… . . .

OR


Leave a Reply

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