Question: C++ programming Question 4 Write a program that dynamically allocates an array targe enough to hold a user-defined number of test scores. Once all the

 C++ programming Question 4 Write a program that dynamically allocates an

C++ programming

Question 4 Write a program that dynamically allocates an array targe enough to hold a user-defined number of test scores. Once all the scores are entered, the array should be passed to a function named sort/) that sorts them in ascending order. Another function named average() should be called to calculate the average score. The program should display the sorted list of scores and averages with appropriate headings. Use pointer notation rather than array notation whenever possible. Sample Output How many test scores will you enter? 3 Enter test score 1: 70 Enter test score 2 90 Enter test score 31 80 The test scores in ascending order, and their average are: 70.00 80.00 90.00 Average score 30.00

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!