Related questions with answers
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 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 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.
Solution
VerifiedAccording to the exercise, the program must calculate the average of a group of test scores, where the lowest score in the group is dropped.
Create a free account to view solutions
Create a free account to view solutions
Recommended textbook solutions

Starting Out with C++ from Control Structures to Objects
8th Edition•ISBN: 9780133769395 (7 more)Godfrey Muganda, Judy Walters, Tony Gaddis
Fundamentals of Database Systems
7th Edition•ISBN: 9780133970777Ramez Elmasri, Shamkant B. Navathe
Introduction to Algorithms
3rd Edition•ISBN: 9780262033848Charles E. Leiserson, Clifford Stein, Ronald L. Rivest, Thomas H. Cormen
Introduction to Algorithms
4th Edition•ISBN: 9780262046305Charles E. Leiserson, Clifford Stein, Ronald L. Rivest, Thomas H. CormenMore related questions
- computer science
1/4
- computer science
1/7