Question: I need help creating a C++ program/code that will dynamically allocate an array that will hold 30 scores. I need to be able to bring
I need help creating a C++ program/code that will dynamically allocate an array that will hold 30 scores. I need to be able to bring in the txt file using fstream into the code.
The program should ask the user for the file name, which is a txt file.
it should Read the test scores into the array and Have a separate function to open the file and read the scores.
the program needs to Sort the scores in ascending order using quick sort.
it should Print the sorted scores. Have a separate function to print the scores and then seperate functions to Calculate and print the average, the median and the mode of the scores. (seperate function for each one) and i also dont know to release the memory that you allocated and close the file at the end.
Thank you!
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
