Write a program which repeatedly reads numbers until the


Python Assignment

Write a program which repeatedly reads numbers until the user enters "done". Once "done" is entered, print out the total, count, and average of the numbers. If the user enters anything other than a number, detect their mistake using try and except and print an error message and skip to the next number.

HINT:

1. Be sure to use Python version 3 or above.
2. When computing the average, remember the user may have input 0 numbers!
3. Be sure to comment your program adequately!
4. Remember your Python code will be graded according to our class Rubric.
5. Submit your Python code file. Name it "XXXX-loop-till-done.py" where XXXX is your name.
6. Submit also a Word document showing screen shots of successful execution.

Write another program that prompts for a list of numbers as above and at the end prints out both the maximum and minimum of the numbers instead of the average.

HINT:

1. See hints for Exercise 1 above.
2. Be sure to comment your program adequately!
3. Remember your Python code will be graded according to our class Rubric.
4. Submit your Python code file. Name it "XXXX-min-max.py" where XXXX is your name.
5. Submit also a Word document showing screen shots of successful execution.

Solution Preview :

Prepared by a verified Expert
Python Programming: Write a program which repeatedly reads numbers until the
Reference No:- TGS02365594

Now Priced at $30 (50% Discount)

Recommended (92%)

Rated (4.4/5)