need help writing a C++ code. I need help writing a that dynamically allocates an array enough to hold a user-defined number of test scores. Once all the scores are entered the array needs to be passed to a function that sorts them in ascending order. Another function should be called that calculates the average scores. Finally, the program should display the sorted list of scores sorted from ascending to descending and averages them with proper headings. Please use a use pointer rather than an array notationion. also please don't allow negative scores

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter7: Arrays
Section7.4: Arrays As Arguments
Problem 5E
icon
Related questions
Question

I need help writing a C++ code. I need help writing a that dynamically allocates an array enough to hold a user-defined number of test scores. Once all the scores are entered the array needs to be passed to a function that sorts them in ascending order. Another function should be called that calculates the average scores. Finally, the program should display the sorted list of scores sorted from ascending to descending and averages them with proper headings. Please use a use pointer rather than an array notationion. also please don't allow negative scores.

Expert Solution
steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr