Test scores Solution

Test scores Solution

Write a program that calculates the average of a group of test scores, where the lowest score in the group is dropped. It should use the following functions.

Void getscore() should ask the user for a test scores, store it in a reference parameter variable and validate it. This function should be called by main once for each of the five scores to be entered.

Void calcAverage() should calculate and display the average of the four highest scores. This function should be called just once by main, and should be passed the five scores.

Int findLowest() should find the lowest of the five test scores passed to it. It should be called be calcAverage, which uses the function to determine one of the five scores to drop.

Do not accept scores less than 0 or higher than 100.
Powered by