In this assignment you will develop a small part of the Saxion student administration, namely the part in which students are linked to mentors.
Write a program in which a csv file with students will be imported and the students automatically are distributed among the various mentors.
We advise you to start modelling a student:
students.csv
(click here to download). It should be mandatory to provide a first and last name when creating a new instance of the class.You then should model the teacher:
addMentorStudent(Student s)
, adds a way of adding a specific student to this teacher for mentorship.getNrOfMentorStudents()
, provides the number of students currently being assigned to this teacher.getMentorStudents()
, retrieves a list of all mentor students.Depending on your implementation, some of the values might look a little different:
Teachers:
Gerralt Gottemaker (GGO) has 20 mentor students.
Evert Duipmans (EDU) has 20 mentor students.
Esther Hageraats (EHA) has 20 mentor students.
Craig Bradley (CBR) has 20 mentor students.
Tristan Pothoven (TPO) has 20 mentor students.
Please enter a teacher code to view their students: CBR
John Harrison (100003)
Erik Hendrickson (100008)
Rick Johnson (100013)
Rick Roosevelt (100018)
Jack Johnson (100023)
Constance Roosevelt (100028)
Constance Harrison (100033)
John Smith (100038)
Franklin Barber (100043)
Rick Turner (100048)
Rick Smith (100053)
Tina Roosevelt (100058)
John Hendrickson (100063)
Tina Jackson (100068)
Richard Smith (100073)
Jill Barber (100078)
Mark Barber (100083)
Rick Hendrickson (100088)
Franklin Roosevelt (100093)
Jack Barber (100098)