Question: Filename: assign 4 - 7 . py Write a program that reads any number of sales, calculates some basic statics, and print out the result

Filename: assign4-7.py
Write a program that reads any number of sales, calculates some basic statics, and print out the result(round the average 2 decimal points). The program should give an error for non-numeric inputs. The output is shown below. You should only use for loops. No credit for using a while loop for this assignment.
Input:
a) python C:\Users
eda\DataProgramming\M4\assign4-7.py 5010020050060020010
b) python C:\Users
eda\DataProgramming\M4\assign4-7.py 900100600
c) python C:\Users
eda\DataProgramming\M4\assign4-7.py 900600 fifty 100
Output:
a) Min: 10
Max: 600
Range: 590
Average: 237.14
b) Min: 100
Max: 900
Range: 800
Average: 533.33
c) All inputs should be numeric

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!