Question: Help me with C++ lab. This need array function, pass by reference and passby value idea and calculating average, finding lowest score. Detailed solution will

 Help me with C++ lab. This need array function, pass byHelp me with C++ lab. This need array function, pass by reference and passby value idea and calculating average, finding lowest score. Detailed solution will be appreciated!!!! Thabk you!!

2. (50 pts) create a program which will take 5 numerical grades from the user and find the lowest grade, and then compute the average grade after dropping the lowest grade entered to the console The program should include the following functions: void getGrades double grades cons int SIzE) Prompts the user for 5 grades and populates the grades array. double getAverageddouble gradesu, const int SIzE) Calculates and returns the average of the array. findDropInfo ble grades const int sizE, int &lowest, double &average) Finds the index of the lowest grade and populates the lowest variable. Next, the function calculates the average of the array with the lowest grade dropped and populates the average variable. void printData(double gradesll, const int SIzE, double average, double avg before) Prints all of the data to the screen. NOTE: Each function needs to be called once from main. Sample output to consolel: Please enter 5 grades: 66.66 90 85.5 98 77 Grade dropped. 66, 66 Final Average: 87.62 Average Before Dropped Grade: 83.00 Please enter 5 grades: 100 100 23 100 100 Grade dropped: 23 Final Average: 100.00 Average Before Dropped Grade: 84.00 wRITE your name in a block or inline comment at the top of your program. PRINT and attach a copy of your source code and output to this worksheet. UPLOAD your source code as lab11.cpp to my homework upload

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!