Calculate the Median and average of a data set.
Input the values 6, 5, 3, 1, 2, 4 and 125 into a file.
Read the file into an array. Use this array as your data for program 9.
Sort the array. You can not calculate a median without the data being in order.
Calculate and print the Median and average of the data.
Required: Use a function for the median and a function for the average. The array should be passed to the functions.