Question: Write the code please. Thank you. Do not upload irrelevant answers, uploading irrelevant content will not be praised. Write a program that computes the average

 Write the code please. Thank you. Do not upload irrelevant answers,

Write the code please. Thank you.

Do not upload irrelevant answers, uploading irrelevant content will not be praised.

Write a program that computes the average of a number of random draws from N readings. The program should draw a random number from 0 to 10 using the 'random.randint (min, max)' function one by one. After each draw, print the updated average. Store the current average in variable avg and compute the new average using the previous average value and the new drawn number no as follows: avg=(avg(N1)+no)/N Set the randomisation seed at the start of the program to 108. Look at the example test case below to see how the print statements should look. Please round the answer to two decimal places. For example: Answer: (penalty regime: 10,20,% ) \begin{tabular}{l|l} 1 & random.seed(108) \\ 2 & N= int(input('Please input the number of readings: )) \end{tabular}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!