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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 10:00, adam4449
Jackson is teaching the decimal number system. he wants his students to know how to expand numbers by powers of 10. which is the correct order in which digits are assigned values in the decimal number system?
Answers: 1
image
Computers and Technology, 23.06.2019 02:00, vivian2020
Read this excerpt from helen keller’s autobiography, the story of my life. have you ever been at sea in a dense fog, when it seemed as if a tangible white darkness shut you in, and the great ship, tense and anxious, groped her way toward the shore with plummet and sounding-line, and you waited with beating heart for something to happen? i was like that ship before my education began, only i was without compass or sounding-line, and had no way of knowing how near the harbour was. "light! give me light! " was the wordless cry of my soul, and the light of love shone on me in that very hour. . the morning after my teacher came she led me into her room and gave me a doll. the little blind children at the perkins institution had sent it and laura bridgman had dressed it; but i did not know this until afterward. when i had played with it a little while, miss sullivan slowly spelled into my hand the word "d-o-l-l." i was at once interested in this finger play and tried to imitate it. when i finally succeeded in making the letters correctly i was flushed with childish pleasure and pride. running downstairs to my mother i held up my hand and made the letters for doll. i did not know that i was spelling a word or even that words existed; i was simply making my fingers go in monkey-like imitation. in the days that followed i learned to spell in this uncomprehending way a great many words, among them pin, hat, cup and a few verbs like sit, stand and walk. based on this excerpt, which words best describe helen keller?
Answers: 2
image
Computers and Technology, 23.06.2019 15:20, yeahmaneee
What does a bonus object do? a. subtracts lives b. keeps track of a player's health c. gives a player an advantage d. makes text appear
Answers: 1
image
Computers and Technology, 23.06.2019 21:00, tiffg2588
Will this setup result in what kathy wants to print?
Answers: 2
You know the right answer?
Create a class “Employee”. Also create two descendants (derived from employee class) “PermanentEmp”...

Questions in other subjects:

Konu
Biology, 01.05.2021 01:00