Question
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started