I'm participating in a very hard scavenger hunt with my work. I need someone to code this before I go into work tomorrow so I can proceed. (if the code is correct then I can proceed with the scavenger hunt). this is c++
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.