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.
- Create a class called Student that has the following stored properties:
- StudentID : Integer
- stdFirstName: String
- stdLastName: String
- stdMarks : Double []
- stdAddress: Address
** 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
- Create a class called Address which can be aggregatedinto the class student
- streetInfo: String
- city: String
- postalCode: String
- province: String
- country: String
** Class Student should have set/get properties, constructor and following method:
toString() method that returns the above information as a String
- Create a class called UndergraduateStudent that inheritsfrom Student and has the following members:
Undergrad Student
- subject: String
- yearOfEntry :Integer
***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.
- Create a class called GraduateStudent that inheritsfrom Student and has the following members:
- subject : String
- yearOfEntry :Integer
- thesisTopic: String
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:
- Add undergraduate student
- Add graduate  student
- View all the students
- View only eligible students for graduation
- exit
Overview:
- You may use array or ArrayList to store all your students(graduate and undergrad) into onearray of objects.
- If you use an Array, you may assume the user does not enter more than ten students in total into the system
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).