Consider that a school “ABC” hired you as a programmer to maintain the  record of its Students and Teachers. You need to develop a system in C++  to enter

 Consider that a school “ABC” hired you as a programmer to maintain the  record of its Students and Teachers. You need to develop a system in C++  to enter the data and show it as and when required. Keeping in the view above scenario, you are required to write a C++  program that can display the information of any specific Teacher or the  Student. It will contain following three classes:  1. Person 2. Teacher 3. Student 4. where a Person should be the base class and Teacher and Student  should be its derived classes.  You are required to use the concept of Polymorphism to generate the  sample output. Consider following class table for above scenario.     Class Data Members Member Functions Person • Name • Age • Gender  • Address  • Phone • Default Constructor • Setter and getter functions for all the data member.  • A function to save information of a person  • A function to display information of a person Teacher • Qualification • Salary • Default Constructor • Setter and getter functions for all the data members • A function to save information of a Teacher • A function to display information of a Teacher. Student • Previous Education • Obtained marks • Total Marks • Default Constructor • Setter and getter functions for all the data members • A function to save information of a Student. • A function to display information of a Student.   Solution Guidelines:  Create three classes: Person as a base class and Teacher and Student  as derived classes.  You have to create the default constructor for each class.  You have to create the setter and getter functions for each attribute  of Person class.  You have to create Save_Information function for each class as  mentioned in the table.  You have to create Display_Information function for each class as  mentioned in the table.  You have to use concept of Polymorphism to generate the sample output.  Sample Output:  

Share This Post

Email
WhatsApp
Facebook
Twitter
LinkedIn
Pinterest
Reddit

Order a Similar Paper and get 15% Discount on your First Order

Related Questions

Hello Students, As discussed in class, the Workspaces and Challenges are now active. Required Challenges for Full Credit To earn full credit (30% of the

Hello Students, As discussed in class, the Workspaces and Challenges are now active. Required Challenges for Full Credit To earn full credit (30% of the assignment), you must complete 8 challenges from the following list: Interns & HR on the Domain Controller Help Desk Fun: User Workstation Nightmares Dangerous Drives Preventative Protection: Thwarting the Imminent Threat Security

Please read the instructions below carefully. Required Challenges for Full Credit Vulnerability Scan Complete, Begin System Hardening [NG] Volatile

Please read the instructions below carefully. Required Challenges for Full Credit Vulnerability Scan Complete, Begin System Hardening [NG] Volatile Vulnerabilities [NG] The Network is Down! Internal Issues Edition [NG] The Network is Down! Contractor Edition [NG] (Complexity 1) The Network is Down! Contractor Edition [NG] Systems Security Analyst Crash Course

Hello Students, Please pay attention to the instructions below. Required Challenges for Full Credit To earn full credit (30% of the assignment), you must

Hello Students, Please pay attention to the instructions below. Required Challenges for Full Credit To earn full credit (30% of the assignment), you must complete 6 challenges from the following list: Interns & HR on the Domain Controller Help Desk Fun: User Workstation Nightmares Dangerous Drives Preventative Protection: Thwarting the Imminent Threat Security