1 The program should work on any file with that format with different numbers of line. Do not hardcode the number of line, compute it instead when you read from the file.
2 You compute the Total Points as the sum between Tests and Assignments.
3 You compute the Numeric Grade as the total points (from all the evaluations) divided by 2. The values are between 0 and 100
4 The Letter Grade is: A if the numeric grade is between 89.5 and 100, B if the numeric grade is between 79.5 and 89.49, C if the numeric grade is between 69.5 and 79.49, D if the numeric grade is between 59.5 and 69.49, and F if the numeric grade is between 0 and 59.49.