Question: Please write comments Create a C++ program (3 points) At the top of the file include the following comments . Your name o The purpose

Please write comments Create a C++ program (3 points) At the topof the file include the following comments . Your name o ThePlease write comments

Create a C++ program (3 points) At the top of the file include the following comments . Your name o The purpose (core concept found below) of the programm - The date created o Using the Person class from Assignment 12 . Modify the Person class: - Set all variables so they are accessible by the Person class and all sub classes (not by any other class or program) -Create a Student class: -Student inherits from Person Add variables for ID and major. Set all variables so they are only accessible from the Student class - ID should be of type int. Add set functions for ID and major. Set the accessiblity so they can be accessed from anywhere - Add a function to display all information for the Student. This includes information inherited from Person Create aStaft class: -Staff inherits from Person Add variables for ID and department. Set all variables so they are only accessible from the Staff class ID should be of type string Add set functions for ID and department. Set the accessibility so they can be accessed from anywhere - Add a function to display all information for the Staff member. This includes informatino inherited from Person. . In main: Create one ojbect of type Student and one object of type Staff Gather all input for Student (name, campus, ID, major) from the user and use the set functions to set the values for the object.. -Display the information for the student. - Gather all input for the staff member (name, campus, ID, department) from the user and use the set functions to set the values for the object. Display the information for the staff member o Compile and run your code o Submit your source code as a plain text file with a .cpp extension. Make sure it compiles without error before submitting it

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!