Question: - Exercise 8 (G) Write a program random_number5 .py that reads a positive integer n from the keyboard and then: - Generates and prints (in

 - Exercise 8 (G) Write a program random_number5 .py that reads

- Exercise 8 (G) Write a program random_number5 .py that reads a positive integer n from the keyboard and then: - Generates and prints (in a single line) n random numbers in the interval [1,100] - Prints the average value (with two decimals), the smallest number (min), and the largest number (max). An example of an execution: Enter number of integers to be generated: 10 Generated values: 77 15 13 54 96 73 100 12 98 28 Average, min, and max are 56.6, 12, and 100 A suitable error message should be presented if the input number n is non-positive. You should not use a list (or any other data structure) to rst store the generated numbers before you compute average, min, and max

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 Programming Questions!