Get Instant Help From 5000+ Experts For
question

Writing: Get your essay and assignment written from scratch by PhD expert

Rewriting: Paraphrase or rewrite your friend's essay with similar meaning at reduced cost

Editing:Proofread your work by experts and improve grade at Lowest cost

And Improve Your Grades
myassignmenthelp.com
loader
Phone no. Missing!

Enter phone no. to receive critical updates and urgent messages !

Attach file

Error goes here

Files Missing!

Please upload all relevant files for quick & complete assistance.

Guaranteed Higher Grade!
Free Quote
wave
Creating Classes, Aggregation, and Manipulating Arrays of Objects

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:

  1. Add undergraduate student
  2. Add graduate  student
  3. View all the students
  4. View only eligible students for graduation
  5. 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).

support
Whatsapp
callback
sales
sales chat
Whatsapp
callback
sales chat
close