Question: Write a program that computes (i) the sum, (ii) the average, (iii) the highest, (iv) the lowest and (v) the number of values of
Write a program that computes (i) the sum, (ii) the average, (iii) the highest, (iv) the lowest and (v) the number of values of a set of values entered by the user. Set 2: As the numbers are entered, the program prints the running sum of values entered. When all the numbers are entered (when the user enters 0), the program prints the result. Test your program with the following sets of data: Set 1: Input Input 27929o 10 30 10 20 0 0 Expected results Sum: 60 Average: 20 Highest: 30 Lowest: 10 Number of values entered: 3 Expected results Sum: 30 Average: 6 Highest: 10 Lowest: 2 Number of values entered: 5
Step by Step Solution
There are 3 Steps involved in it
Heres a simple Python program that accomplishes the specified tasks def calculatestats values ... View full answer
Get step-by-step solutions from verified subject matter experts
