Question: conplete in Java prigramming: Suppose we are designing a college record-keeping program that has records for students and faculty. There is a natural hierarchy for

conplete in Java prigramming:
Suppose we are designing a college record-keeping program that has records for students and faculty. There is a natural hierarchy for grouping these record types:
They are all records of people.
Students. The student has the ability to start from the beginning (reset) at any point, i.e., a student in 3rd year can start from the beginning with the same major or a different one. We have two kinds of students:
Undergraduate Students. Undergraduate students have the following properties:
Name, StudentNumber, Major, and Level (freshman, sophomore, junior, senior)
Graduate Students. Graduate students have the following properties:
Name, StudentNumber, Major, and Degree (Master, Doctoral)
Instructors. Instructors have the following properties:
Name, ID, Salary. However, the salary is a property in the job class (can be found in slide 55 here: CS 143 Lecture 03 Inheritance Composition and Overriding Methods.pptx Actions )
In all of the previous classes, you can check if the person (whether that a student or an instructor) is the same. [Hint: Could be done by overriding equal method]. Also, you should be able to display the correct person of every person type.
Your lab work consists of two parts:
Draw the UML Class Diagram of the system.
Implement the system in Eclipse using all the concepts of inheritance and composition you have learned so far.
You must try your code by creating an array of 5 people, each is different. (Polymorphism)
output:
conplete in Java prigramming: Suppose we are designing a college record-keeping program

Sample Run: 8. Problems Javadoc Declaration Console terminated> Inheritance Demo [Java Application] C:Program Files Javaj Name: Smith, Will Type: Instructor Instructor Number: 4910 Instructor Salary: $60000.00 Name: Statham, Jason Type: Undergraduate Student Number: 9931 Student Major: Computer Science Student Level: Sophomore Name: Johnson, Dwayne Type: Student Student Number: 8812 Student Major: Engineering Name: Theron, Charlize Type: Graduate Student Number: 9901 Student Major: Physics Student Degree: Master Name: Clarke, Emilia Type: Person Sample Run: 8. Problems Javadoc Declaration Console terminated> Inheritance Demo [Java Application] C:Program Files Javaj Name: Smith, Will Type: Instructor Instructor Number: 4910 Instructor Salary: $60000.00 Name: Statham, Jason Type: Undergraduate Student Number: 9931 Student Major: Computer Science Student Level: Sophomore Name: Johnson, Dwayne Type: Student Student Number: 8812 Student Major: Engineering Name: Theron, Charlize Type: Graduate Student Number: 9901 Student Major: Physics Student Degree: Master Name: Clarke, Emilia Type: Person

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!