Question: I am taking a C++ programming course and need help with this source code. In this assignment, you will be writing a program to help

I am taking a C++ programming course and need help with this source code. In this assignment, you will be writing a program to help a teacher calculate the final grade for all the exams a student has taken. The students lowest grade must be dropped from the average.

The program is required to have the following functions:

void GetScore(double & score)

This function should prompt the user for a test score, the test scored entered should be stored in the reference parameter.

The function should validate the user input before ending the function. The grade entered must be greater than or equal to 0 and less than or equal to 100.

The program will get 6 grades from the user, so this method must be called 6 times.

void CalcAverage(double score1, double score2, double score3, double score4, double score5, double score6)

This function will calculate the average of the five highest test scores.

The function will be called by main only one time, the six test scores must be passed all at once via the parameters.

Average must be displayed with a precision of 2 decimal places.

This function will use the FindLowest function to know which test score to drop.

double FindLowest(double score1, double score2, double score3, double score4, double score5, double score6)

This function will find and return the lowest score of the scores passed to it.

This method must be called by CalcAverage, which uses the function to determine which of the six scores to drop.

Pseudocode must be provided in the comment block at the top of the file.

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!