Question: Write the code on c++ Lab7 Write a poncylete Ca+ code for the shown atass hieraraly, where bu tive talary. + Is the main fanction
Lab7 Write a poncylete Ca+ code for the shown atass hieraraly, where bu tive talary. + Is the main fanction do the Bulinwine - Frime all Enobryoes aturwation inclade the salary betare and after apatatieg Write a complete C++ code for the shown class hierarchy, where: - EmployeeO: This default constructor should give an employee object initial values as follow: elD: 0000, eName: "unknown", eExperince: 0. - calculateSalary 0 : This function will check the experience years of the employee, if it's 10 years or more; edit the salary by adding 25% as a bonus. If it's less than 10 years; add 10% to the salary. - In the main function do the following: - Initialize an Engineer object, read all his information from user. - Pri g. Lab7 Write a poncylete Ca+ code for the shown atass hieraraly, where bu tive talary. + Is the main fanction do the Bulinwine - Frime all Enobryoes aturwation inclade the salary betare and after apatatieg Write a complete C++ code for the shown class hierarchy, where: - EmployeeO: This default constructor should give an employee object initial values as follow: elD: 0000, eName: "unknown", eExperince: 0. - calculateSalary 0 : This function will check the experience years of the employee, if it's 10 years or more; edit the salary by adding 25% as a bonus. If it's less than 10 years; add 10% to the salary. - In the main function do the following: - Initialize an Engineer object, read all his information from user. - Pri g
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
