Question: Use a single file (yourlastnameLab10.cpp). In main, ask a user for an integer number of test scores. Write a main function that dynamically allocates an
Use a single file (yourlastnameLab10.cpp). In main, ask a user for an integer number of test scores. Write a main function that dynamically allocates an array large enough to hold the user defined number of test scores. Ask the user for that many test scores. Input all of those scores and add to the dynamic array. Pass that dynamic array function that sorts the numbers and returns the median (middle value). Then in main, the program should display list of scores and the median. Run the program in the debugger with three values and take a screenshot of the listing of the values in the dynamic array. Then run the program as normal, and take a screenshot of the output.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
