Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 grades, each is between and as whole numbers. If the user reads invalid grade greater than or less than 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started