Question: C++. Thank you Write a program that will prompt for grades and calculate the average. The grades will be stored in an array called Gradeslnput

 C++. Thank you Write a program that will prompt for grades

C++. Thank you

Write a program that will prompt for grades and calculate the average. The grades will be stored in an array called Gradeslnput that is defined in main. The maximum number of grades that can be stored in the array is 1,000. The variable holding the actual number of grades the user entered should be defined in main and should be called GradeCount. The program will have two functions in addition to main. The 1st function should be called from main and should keep prompting the user for grades till a sentinel is entered, capture those grades and store them in Gradeslnput. This function should also update the variable GradeCount in main. The 2nd function should be called from main and should find the average of the grades in Gradeslnput. The average of the grades should be printed out from main. DO NOT USE GLOBAL VARIABLES. . Sample Run 1: 90, 80, 50. Sample Run 2: 70, 75, 80, 85, 90

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!