Question: Using Python, have your program do the following, using loops (no recursion): 1. Have the user enter numbers as long as they enter values that

Using Python, have your program do the following, using loops (no recursion):

1. Have the user enter numbers as long as they enter values that are between 0 and 1000 (inclusive). Once they have input a number outside that range, cease input and print out the same information about the values just input specified in #2. Also, the last number input (the one not in range) should not be included in the results.

2. When the input is done, display the following if there was at least one valid (non - negative) number entered:

a. The sum of the numbers entered in that loop

b. How many numbers were entered

c. The average of those numbers to two places (avoid integer division.)

d. The lowest number input

e. The highest number input

If there were no (valid) numbers entered, make sure your code displays the

message no valid numbers entered (and avoids dividing by 0) instead of

displaying a - e below.

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!