Answered step by step
Verified Expert Solution
Link Copied!

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)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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data And Databases

Authors: Jeff Mapua

1st Edition

1978502257, 978-1978502253

More Books

Students also viewed these Databases questions

Question

To solve p + 3q = 5z + tan( y - 3x)

Answered: 1 week ago