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:00
Your computer running windows 10 is doing some very strange things with the operating system. you are fairly certain it is not a hardware issue. you need to try to get further insight into what is going on within the operating system. which tool would be best suited for this?
Answers: 2
question
Computers and Technology, 22.06.2019 17:30
The forerunner to cell phones, pdas, and smartphones was
Answers: 1
question
Computers and Technology, 23.06.2019 04:10
2pointswho was mikhail gorbachev? oa. a russian leader who opposed a coupob. a polish leader who founded the labor union "solidarityoc. a soviet leader who called for a closer relationship with the unitedstates, economic reform, and a more open societyd. a soviet leader who called for more oppression in the soviet union
Answers: 3
question
Computers and Technology, 23.06.2019 04:31
Which of the following is not a way in which trees benefit the environment? a. they remove a significant amount of carbon dioxide from the atmosphere. b. they remove a significant amount of oxygen from the atmosphere. c. their roots hold soil in place, reducing rates of erosion. d. they remove ozone and particulates from the atmosphere. select the best answer from the choices provided a b c d
Answers: 1
You know the right answer?
Create a class “Employee”. Also create two descendants (derived from employee class) “PermanentEmp”...
Questions
question
Mathematics, 18.01.2021 20:30
question
Mathematics, 18.01.2021 20:30
question
Mathematics, 18.01.2021 20:30
question
History, 18.01.2021 20:30
question
Geography, 18.01.2021 20:30
question
Mathematics, 18.01.2021 20:30