Question: this code is for c++ List Class You can use the List class example from this week as a template (however; not required) to help
List Class You can use the List class example from this week as a template (however; not required) to help you with this astignment. Add the following Anctonelity to the list class to do the folowing: Add a function to sort the data, calculate the average and delermine the median. Aho modily the Resize0 function to do the following: HiNT. Yovi need to allocate a new aray and copy the values from the original array into the new, then deafociat the originai atray. Nlow the lunction to resize the modity the sice of the array. If the new aize is larger than the old size, the data values in the array should be copied into the new it the new. array is smaller than the original, t should copy only as many values as the new array will hold. Use this class to write a program to alow the user to entor a list of valuos, then display the list, sort and redisplay the lat and display the average and median. Nso resize the list to a larger size, display then resize to a smaller size and redisplay to demonstrate the resizing functionalify
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
