Python
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.
9 years ago 10
Purchase the answer to view it
- pythontask.rar
Purchase the answer to view it
- pythonlooptilldone_minmax.zip
Purchase the answer to view it
- xxxx-loop-till-done.png
Purchase the answer to view it
- xxxx-min-max.png
- Computer assignment help
- h10
- Global Power Shifts
- I need one page on this topic (Islamic finance)
- Helping someone who is having a heart attack Organizing
- ASSIGNMENT 08 BU340 Financial Management I Directions: Be sure to save an electronic copy of your answer before submitting it to Ashworth College for grading. Unless otherwise stated, answer in complete sentences, and be sure to use correct English, spel
- AS BELOW
- Benchmark- Language Arts Unit Plan
- assignment
- Course Reflection