subject

Create a class “Employee”. Also create two descendants (derived from employee class) “PermanentEmp” and “VisitingEmp”. The class Employee must have a data member’s id, name, address, email, and age. It contains a constructor to initialize the data members and pure virtual functions “getinfo ()”, “readinfo()” ,and “calsalary()” .The class "PermanentEmp" will have additional data members Joiningdate and Salary. The class "VisitingEmp" will have data members no_of_hours and rate_per_hour. Both classes contain constructor to initialize the data members.” Write a menu-driven program using the Switch case and do while to select any choice from multiple option to obtain desired result. If user enter 1 then it should get data of “PermanentEmp” from user and display annual income of the employee. If user enter 2 then it should get data of “VisitingEmp” from user and display per day income of the employee. Any other entered number will exit the program. Make sure you have implement the concept of polymorphism and pointer to object.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 17:40
Consider the simple 3-station assembly line illustrated below, where the 2 machines at station 1 are parallel, i.e., the product only needs to go through one of the 2 machines before proceeding to station 2.what is the throughput time of this process?
Answers: 2
question
Computers and Technology, 23.06.2019 16:00
Kenny works with an it company. his company is about to launch new software in the market. he has to ensure that this new software is functional and meets all of the quality standards set up at the planning stage. which job profile is kenny likely to have? kenny is likely to have the job profile of a blank .
Answers: 2
question
Computers and Technology, 23.06.2019 17:00
What are the 12 colors of the spectrum called?
Answers: 1
question
Computers and Technology, 24.06.2019 13:00
Which one of the following functions is not available on the autosum tool? sum average if max
Answers: 3
You know the right answer?
Create a class “Employee”. Also create two descendants (derived from employee class) “PermanentEmp”...
Questions
question
English, 04.03.2021 23:50
question
Computers and Technology, 04.03.2021 23:50
question
Mathematics, 04.03.2021 23:50
question
Mathematics, 04.03.2021 23:50
Questions on the website: 13722363