The Task

The problem is to read student names and marks from a file, grade them and display the details (names and grades) on screen together with the highest score.

Method

Setup a class to store a student. The data is to include a first name, last name, testscore (whole number) and a grade (A..F). The class should include functions to read a student name and score from a file, to determine the grade from the score and to display that students details on screen. You may require other functions, that is for you to decide. The main program should contain an array of student objects which are used in conjunction with the file to load all students results. See the file students.dat . Your program should handle up to 20 students results.

In this exercise it is expected you will require at least two non-class functions to calculate the highest score and to display all the results. The grades are to be awarded as follows: 90 and over A, 80-89 B, 70-79 C, 60-69 D, less than 60 F.

Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.