C++程序代写,mergesort 对结构体排序,function pointer
Problem A) (20 Points) Program to compute the numeric grades for a course.
Assume the course records for a particular course are in a file named: “Grades.dat” that will
serve as the input file for your program. The input file is in exactly the following format. Each
line contains a student’s last name, then one space, then the student’s first name, then one
space, then five quiz scores. The quiz numbers are whole numbers and are separated by one
space.
For example, one entry in the file “Grades.dat” is as follows:
Svelt Sam 90 80 90 100 85
Your program will take its input from the file “Grades.dat” its output to a second file named:
“FinalGrades.dat”. The data in the output file will be the same as the data in the input file
except that you will add one additional number at the end of each line. The number will be the
average of the students quiz scores.
For example, the following two entries are in the output file “FinalGrades.dat”:
Svelt Sam 90 80 90 1