This Assignment is designed to take you through creating classes, aggregation, and manipulating arrays of objects.
A University likes to have a simple system to keep track of all the students (graduate and undergrads). You have to create a menu-driven program for the user to use the system through the console. The following classes are needed for this object-oriented database.
** Class Student should have set/get properties, constructor and have following methods:
Average() - that returns the average grade for students
toString() method that returns the above information as a String
** Class Student should have set/get properties, constructor and following method:
toString() method that returns the above information as a String
Undergrad Student
***Class Student should have set/get properties, constructor and following method:
Graduate() â Boolean that returns true if the Student is eligible to graduate when the average of their marks is greater than 50.
Class Student should have set/get properties, constructor and following method:
Graduate() â Boolean that returns true if the Student is eligible to graduate when the average of their marks is greater than 70.
System Menu:
Overview:
1 âAdd undergraduate Student: this menu should accept all the necessary parameters for undergraduate students and create an instance from undergraduate class and store it into students array.
2 -Add graduate student:Â this menu should accept all the necessary parameters for graduate students. It should create an instance from the graduate class and store it in the students' array.
3- View all the students: view all the relevant information of students (graduate and undergraduate) from students array
4- View only eligible students for graduation:Â view all the relevant information (graduate and undergraduate) from the students' array only if they are eligible to graduate.
5 â Exit: exit the running menu (program).