Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribedHelp 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

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

Advanced Oracle Solaris 11 System Administration

Authors: Bill Calkins

1st Edition

0133007170, 9780133007176

More Books

Students also viewed these Databases questions

Question

How does this compare with the Fog Index for your written message?

Answered: 1 week ago

Question

6. Be able to choose and prepare a training site.

Answered: 1 week ago