Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Complete in Java programming Language. thank you Suppose we are designing a college record-keeping program that has records for students and faculty. There is a

Complete in Java programming Language. thank you
image text in transcribed
image text in transcribed
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, ie, 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, Student Number, Major, and Level freshman, sophomore.junior, senior) Graduate Students. Graduate students have the following properties: Name. Student Number, 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 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: 1. Draw the UML Class Diagram of the system 2. 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) Sample Run: Problems Javadoc Declaration Console terminated inhance Demo Dave Application Program Fively 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 Your lab work consists of two parts: 1. Draw the UML Class Diagram of the system. 2. 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) Sample Run: 2. Problems Javadoc Declaration Console

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Linked Data A Geographic Perspective

Authors: Glen Hart, Catherine Dolbear

1st Edition

1000218910, 9781000218916

More Books

Students also viewed these Databases questions

Question

2. Do you agree that unions stifle creativity? Why or why not?

Answered: 1 week ago

Question

How can you defend against SQL injection attacks?

Answered: 1 week ago