Question: Write a program that computes the average of a set of grades. The user is prompted the following: 1- Number of grades to be entered.

Write a program that computes the average of a set of grades. The user is prompted the following:

1- Number of grades to be entered.

2- The value of the minimum grade.

3- The value of the maximum grade.

Make sure to write input validation for the following:

1- The number of grades cannot be negative! In case it is 0, it means that user has no grades to enter.

2- Each entered grade should be a valid grade between the minimum and maximum values set by the user.

Finally, the program prints the average of the grades as show below:

Write a program that computes the average of a set of grades.

The user is prompted the following: 1- Number of grades to be

entered. 2- The value of the minimum grade. 3- The value of

the maximum grade. Make sure to write input validation for the following:

ZATerm_152\ICS103\Code Test Quiz_1.exe Please enter the number of grades: -5 Invalid input! Please re-enter number

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!