Question: Please use c++ to do this code thank you and please use comments Program 2-Lowest Score Drop For this problem, please implement Problem #11 on
Please use c++ to do this code thank you and please use comments Program 2-Lowest Score Drop For this problem, please implement Problem #11 on page 375 of Gaddis, 9th Edition. A scan of the problem is included below for those who don't have a copy of the book. 11. Lowest Score Drop 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 score, store it in a reference param- eter 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 findtowest () should find and return the lowest of the five scores passed to it. It should be called by calcAverage, which uses the function to determine which of the five scores to drop. Input Validation: Do not accept test scores lower than 0 or higher than 100 In general, your program should ask the user for five different test scores, determine which one is the lowest, and calculate and display the average of the remaining four highest scores. The test scores are assumed to be ints. Note that although the test scores in this problem are ints, the average should be calculated as a double. Have it printed out to two decimal places. Notice that this problem includes a requirement to create three different functions besides the main) function. Here are some programming notes for those functions: 1) void getScore (int &) The getScoe) function should include a prompt to enter another test score, an input statement, and an input validation loop that makes sure the number entered is between 0 and 100 (inclusive). Once the number passes the input validation loop, the function will return the value back through a reference parameter (not the return mechanism of the
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
