Write a c++ program by creating an 'Employee' class having the following functions and print
the final salary.
1 - 'getInfo()' which takes the salary, number of hours of work per day of employee as
parameters
2 - 'AddSal()' which adds $10 to the salary of the employee if it is less than $500.
3 - 'AddWork()' which adds $5 to the salary of the employee if the number of hours of work
per day is more than 6 hours.
Answers
Answered by
3
Answer:
Write a c++ program by creating an 'Employee' class having the following functions and print
the final salary.
1 - 'getInfo()' which takes the salary, number of hours of work per day of employee as
parameters
2 - 'AddSal()' which adds $10 to the salary of the employee if it is less than $500.
3 - 'AddWork()' which adds $5 to the salary of the employee if the number of hours of work
per day is more than 6 hours.
Hope it helped you mate
Please mark me as the brainliest
Similar questions