Write a program to read in up to 100 positive real values from a data file that everyone will name "p4data.dat" < 4A >, output them in ascending order < 10A >, calculate and print the average < 10B >, the median < 10C >, the variance < 10D >, and the standard deviation < 4E >. The average, sorting, variance, median, and printing should each be carried out in separate subroutines <20F>.
Question 1: Initially set up the framework of the program to read in only 1 set of data (USE SAMPLE DATA), load it into an array called x, and print x to the screen.
Question 2: Modify the program to use a subroutine to calculate and print the average.
Question 3: Modify the program to use a subroutine to calculate and print the variance and standard
deviation.
Question 4: Modify the program to use a subroutine to sort and print out the array in ascending order.
Question 5: Modify the program to use a subroutine to calculate the median.
Question 6: Modify the data file to only include the values listed above under the "OFFICIAL DATA FILE" heading.
Question 7: Modify the program to process multiple sets of data.
Question 8: Add proper formatting.