Question: 6. Write a program that dynamically allocates an array large enough to hold a user-defined number of test scores (max size of 10 is sufficient

6. Write a program that dynamically allocates an array large enough to hold a user-defined number of test scores (max size of 10 is sufficient for testing). Write a function to store randomly generated numbers in the range from 1 to 100 into the array. The array should be passed to a function that sorts them in ascending order. Another function should be called that calculates the average score. You should have a function that displays the contents of the array. Your program should display the array before it is sorted, after it is sorted and the average using appropriate headings. Use pointer notation rather instead of array subscript notation, i.e. a[i] to sort the array and to display the contents of the array. Modify the bubble sort using pointer notation to sort your array in ascending order The pseudocode for your main function should be similar to loadTestScores( with whatever parameters are needed) displayTestScores(with whatever parameters are need sortTestScores(with whatever parameters are needed) calculateTestAvg(with whatever parameters are needed) displayTestScores(with whatever parameters are needed) displayTestAvg(with whatever parameters are needed) Copy and paste your program into the word document. Capture the output window demonstrating your function works directly below the program
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
