Answered You can hire a professional tutor to get the answer.
You are given a file of student grade records.
You are given a file of student grade records. For each student, there is a record containing a name, 3 exam grades, a 1 or 0 indicating whether the student has earned extra credit which would add 3 points to his/her average, or not, and a -1 or 1 indicating pass/fail option or regular letter grading. Develop an algorithm to compute each student’s average and print out his/her name and final grade. If the student has selected the pass/fail option, the final grade is a ‘Pass’ for an average > 70, and a ‘Fail’ otherwise. If the student has selected regular letter grading, then the final grade is ‘A’ for an average > 90, ‘B’ > 80, ‘C’ > 70, and an ‘F’ otherwise. Finally, print the class average. Be sure to validate the codes.A.