Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program using inheritance that will allow a user to enter in information for various types of people at a university. The program should

Write a program using inheritance that will allow a user to enter in information for various types of people at a university. The program should allow the user to enter information about Faculty Members, Staff Members, Students, Advisors, and an Other type to catch all others. After the user has entered in all of their records, print them out in a legible way and ask if they want to enter more information.

The hierarchy of the classes should be as follows, or at least similar.

Person (name, address, email, etc)Employee

Faculty (courses taught, department, etc)

Staff (department, title, etc)

Advisor (department, position outside of university, etc)

Student

Undergraduate Student (class year, gpa, etc)

Graduate Student (same as undergrad)

Other (role at university, position outside of university, etc)

Be sure to use inheritance so variables arent declared in subclasses if they are not necessary.

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

Essentials of Database Management

Authors: Jeffrey A. Hoffer, Heikki Topi, Ramesh Venkataraman

1st edition

133405680, 9780133547702 , 978-0133405682

More Books

Students also viewed these Databases questions