Question: C++ Code Exercise B: Chapter 9, PC 2- Test Scores #1 and Drop Lowest Score Write a program that dynamically allocates an array large enough
C++ Code
Exercise B:
Chapter 9, PC 2- Test Scores #1 and Drop Lowest Score
Write a program that dynamically allocates an array large enough to hold a user-defined number of test scores. Once all the scores are entered, the array should be passed to a function that sorts them in ascending order.
Another function should be called that calculates the average score of the items in the array.
The program should display the sorted array of scores and averages with appropriate headings.
After the sorted array (and its average) has been displayed, drop the lowest score and re-display the sorted array and new average.
Use pointer notation rather than array notation whenever possible.
Input Validation: Do not accept negative numbers for test scores
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
