I'm designing a student class that reads from a file for the name, ID, grade, and courses[first and second semester]. The file will look like this:
Joe Blog,45478,9
Math,89,78
Science,78,89
;
Andy Allen,00012,12
Science,89,48
Math,78,69
History,88,90
;
As you are see, the name, id, and grade are on the same line, separated by a comma. Then the next lines iare the courses and first and second semester grades in percent. Finally each student is separated by a semicolon. For the final output, I'm to display their schedule and grades for both semesters, and sort the students by their overall GPA!
I'm planning to use struct for the name, ID number, grade, and grades(which will then be a 2 X 6 array), and courses (array of size 6--the maximum number of courses)
And I'm thinking of using Vectors for storing all the students' information. Any other efficient ideas?
Any advices on how to do this in the most effective way?