Question: Create an array of 5 grades ( double ) in your main program Add Option 7 in your menu to allow the user to calculate
Create an array of grades double in your main program
Add Option in your menu to allow the user to calculate a quiz grade average
Create a void function getGrades that accepts the array as a parameter. Note that arrays are passed by reference by default. The function will request each grade from the user and populate the array that was passed.
Create a void function displayGrades that will display each of the grades in the grade array
Create a function averageGrades that will return double the average of the grade array
Option will manage the grades. When the user selects this option, it will ask for the grades, show all the grades and show the user the average.
Be sure to update your comments at the top of the file
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
