A text file (126exam1.txt) contains student’s name followed by their test scores. Write a program that does the following:
Compute class average
List names and scores of all students whose test scores are below the class average
Remove “frank” and recomputed class average
Compute class “median”
Write the output to exam1_xxxx.txt where xxxx is last 4 digit of your id. Submit output file and source codes through canvas.
Your main program shall include the following statements:
fout << “My name is (your name here), last 4 digits of id is (xxxx)\n”;
fout << “…..MIN….\n”;
…
gradeBook.load(“126exam1.txt”);
...
fout << “The class average is “ << gradeBook.average() << endl;
fout << “Names of Students that are below average:” << endl;
…
fout << “…..MED….\n”;
gradeBook.remove(“frank”);
fout << “The class average is “ << gradeBook.average() << endl;
fout << “…..MAX….\n”;
fout << “The class median is “ << gradeBook.median() << endl;