Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

JAVA Suppose we are designing a college record - keeping program that has records for students and faculty. There is a natural hierarchy for grouping

JAVA
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
Output for the code.
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
image text in transcribed

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

XML Data Management Native XML And XML Enabled Database Systems

Authors: Akmal Chaudhri, Awais Rashid, Roberto Zicari, John Fuller

1st Edition

ISBN: 0201844524, 978-0201844528

More Books

Students also viewed these Databases questions

Question

Persuasive Speaking Organizing Patterns in Persuasive Speaking?

Answered: 1 week ago