Write a program that (using an array) analyzes student performance on an exam using the information from such a file. The program should input the name of the text file, and then display the worst score, the best score, the average score, the standard deviation, and a histogram -- a bar graph indicating the frequency with which a given score occurred. For example, if three people scored 74, five people scored 75, six people scored 76, no one scored 77 and two people scored 78, then that portion of the histogram should appear as:
74: ***
75: *****
76: ******
77:
78: **
Entries below the worst or above the best should not be displayed.
You must use function to print histogram: public static void printHist(double[] sorted)