A set of data (i.e. test scores), can be summarized by a frequency distribution chart. For example, if the list of test scores is:
90, 85, 100, 50, 50, 85, 60, 70, 55, 55, 80, 95, 70, 60, 95, 80, 100, 75, 70, 95, 90, 90, 70, 95, 50, 65, 85, 95, 100, 65
then the frequency distribution looks like the one below:
score frequency
----- ---------
100 3
95 5
90 3
85 3
80 2
75 1
70 4
65 2
60 2
55 2
50 3
a) Write a C program, stats.c, that initializes an array at compile time with the test scores shown above and outputs the test scores, five per line.
b) Sort the test scores into ascending order and output the scores, five per line.
c) Calculate and output the frequency distribution chart as shown above. Note that the scores are listen in decreasing value within the table.
d) Output the percentage of passing and failing test scores to one decimal place. Scores below 60 are failing.
e) Calculate and output the mean of the test scores to one decimal place.
f) Output the mode of the test scores.
g) The median of a list of the median of a list of numbers is that element such that when the numbers arranged in ascending or descending order, half the elements lie above it and below. This can happen only when there are an odd number of elements in list. If the array contains an even number of items, the median is the average two numbers in the middle (to one decimal place). Your program should But the median of the test scores given to one decimal place. (Note: Your program should determine on its own whether there is an odd or even number of test scores).
Note that each section of the lab should be designed within its own function, passing parameters as necessary. Be sure to use the set of test data given above in your program and be sure you input the data in the order given.
Remember that the main() function should appear as the first function in the program. Be sure to use function prototypes for each of the functions that are used in your program.
Output from your program should be sent to the terminal window (your screen) as well as the requested csis.txt output file. Be sure to read the document on Capturing Program Output. Your full name must appear as a comment in the source file that contains main().