Question

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

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

note that the user only allowed to enter numbers as in image 4 line 12
when he entered "a" it shows an error message

0 0
Add a comment Improve this question Transcribed image text
Request Professional Answer

Request Answer!

We need at least 10 more requests to produce the answer.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the answer will be notified once they are available.
Know the answer?
Add Answer to:
Write a program that computes the average of a set of grades. The user is prompted...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT