Question: This code is for c++ You can use the List class example from this weok as a template (however, not required) to help you with
You can use the List class example from this weok as a template (however, not required) to help you with this assignment. Add the following functionality to the list class to do the following: Add a function to sort the data, calculate the averege and determine the median. Also modify the RosizeO function to do the following: HiNT - You'l need to allocate a new array and copy the values from the criginal array into the new, then deallocate the original artity. Alow the function to resize the modity the size of the array. If the new size is larger than the old size, the data values in the array should be copied into the new. If the new array is smaller than the original, it should copy only as mary values as the new array will hold. Use this class to write a program to alow the user to enter a list of values, then display the list, sort and redisploy the list and display the average and median. Aso resize the list to a larger size, display then resize to a smaller size and redisplay to demonstrate the resizing funcfionalify
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
