Question: DYNAMIC ARRAY PRACTICE: Create a program that takes a random number of values and puts them in an array, then determines the median and the
DYNAMIC ARRAY PRACTICE: Create a program that takes a random number of values and puts them in an array, then determines the median and the mode of the values. Your program should have functions that:
dynamically create an array of userspecified size
fill the array with random values between user specified values
print the array in a "pretty" way maximum of values per line
sort the array in ascending order
determine the median of the array return the pointer to the valueif the array has an even number of values, the median is the average of the middle values CLARIFICATION: THIS FUNCTION SHOULD RETURN A POINTER TO A DOUBLE THE VALUE OF THE MEDIAN CAST TO DOUBLE IF IT IS AN INTEGER VALUE DIRECT FROM THE ARRAY, OR THE DOUBLE CALCULATED MEDIAN
determine the mode of the array the most frequently occurring valueif no mode, return otherwise return the value
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
