Question: Write a program to prompt the user to input ( read ) 1 5 grades, each is between 0 and 1 0 0 as whole

Write a program to prompt the user to input (read)15 grades, each is between 0 and 100 as whole numbers. If the user reads invalid grade (greater than 100 or less than 0), the grade will be ignored, and reading grades will continue.Use counter to count number of correctly read grades and sum variable to calculate the sum of the correctly read grades. Then calculate the average of the grades.At the end of the program, the program will display:Your name and number, then number of correct grades, their sum and the average of the correct Grades

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!