Categories: Homework on time

Write a program which repeatedly reads numbers until the user enters “done”. Once “done” is entered,

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.

Don't use plagiarized sources. Get Your Custom Essay on
Write a program which repeatedly reads numbers until the user enters “done”. Once “done” is entered,
Just from $13/Page
Order Essay
superadmin

Share
Published by
superadmin

Recent Posts

Consider the following information, and answer the question below. China and England are internation

Consider the following information, and answer the question below. China and England are international trade…

4 years ago

The CPA is involved in many aspects of accounting and business. Let’s discuss some other tasks, othe

The CPA is involved in many aspects of accounting and business. Let's discuss some other…

4 years ago

For your initial post, share your earliest memory of a laser. Compare and contrast your first percep

For your initial post, share your earliest memory of a laser. Compare and contrast your…

4 years ago

2. The Ajax Co. just decided to save $1,500 a month for the next five years as a safety net for rece

2. The Ajax Co. just decided to save $1,500 a month for the next five…

4 years ago

How to make an insertion sort to sort an array of c strings using the following algorithm: * beg, *

How to make an insertion sort to sort an array of c strings using the…

4 years ago

Assume the following Keynesian income-expenditure two-sector model:

Assume the following Keynesian income-expenditure two-sector model:                                                AD = Cp + Ip                                                Cp = Co…

4 years ago