Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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, 90Step 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