"Student Class and Driver"
This Student Class will be the data that will be used for each of the projects assigned and graded this semester.
Your Student Class will consist of:
Student Attributes:
First Name
Last Name
ID Number (6 digit number, generated as a random integer, assigned as a string)
List of Courses Taken (you may use an ArrayList type, or a linked list)
Total number of credits (calculated, not entered as data)
GPA (calculated, not entered as data)
Student Methods / Functions:
usual "sets and gets"
comparison based on lastName
equality test based on idNo
toString (formatted as shown below)
Your Course Class will consist of:
Course Attributes:
Course Number (4 digit used as a string)
Number of Credits (double)
Grade received (string ‘A', ‘B+', etc)
Course Methods:
usual "sets and gets"
toString (courseID, credits, grade)
equality test based on idNo
Your driver program should consist of an array of Student.
LoadData: the student data should be read in from a text file and stored in the array. A course code of -999 will mark the end of the course list.
AddStudent: the user will input the new student (name only) and add to the rear of the array
Display: will display all of the students in the formatted form.
StoreData: the student array will be stored to the text file.
Student Data will be formatted:
Last name, First Name, IDNo
Course1 code, credits, grade
Course2code, credits, grade etc.
Total Credits, GPA.