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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started