Question: PLEASE USE PYTHON FOR THE CODE. Write code IN PYTHON that asks the user to input grades. A valid grade is between 0 and 100.

PLEASE USE PYTHON FOR THE CODE.

Write code IN PYTHON that asks the user to input grades. A valid grade is between 0 and 100. If the user enters an invalid grade (other than -1) ask for another entry without counting the invalid entry. Continue to get grades till the user enters -1.

As you get the grade, keep track of the total of all grades, how many have been entered so far (counter), what is the max and what is the min. Do not use arrays or lists. Once the loop is done, show the average, min and max grade. Use the following logic:

Before the loop, get the the first grade and set it as the min and max then start the loop to get more grades as long as the grade is not -1.

Remember to add comments, and that style and best practices will counts towards the points.

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!