
This project depends on material thru Chapter 9.
You are given a file of scores, scorfile.dat, for the final exam in a course. Each line of the file contains the student's name (20 characters) and the exam score on a scale of 0-100.
Your program is to find the median of these scores and assign grades to each student. The median is that score such that half the scores are higher than the median and half are lower. To find the median, read the file into an array, then sort the array in descending order. Once the array is sorted, it is easy to find the median score.
Once you have the median, assign and display grades according to the following rule. If a student’s score is within 10 points (above or below) of the median, assign the student a grade of Satisfactory. If the score is more than 10 points higher than the median, assign the student a grade of Outstanding. If the score is more than 10 points below the median, assign the student a grade of Unsatisfactory. The output from your program should consist of a labeled three-column list containing the name, exam score, and grade of each student.
Hint: use Program 9.15, Sort_Score_File, as a starting point.