Write a C++ program by creating an 'Employee' class having the following functions and print the final salary.
Private members of class Employee
Emp_ID string
Emp_Name string
designation string
salary float
Weekly_hours int
Public member functions of class Employee
a) Employee_Data() which takes the Emp_ID, Emp_Name, designation, salary, Weekly_hours of work per day of employee as input.
b) Add_Salary() which adds P250 to the salary of the employee if it is less than P5000.
c) Add_Workbenefits() which adds P150 to the salary of the employee if the number of hours of work per day is more than 6 hours.
Answers
Answered by
0
Answer:
si,siybwu xhdfb ihbc dlj wrbpeiw xh. xi deyb rxigcbriyfc bojihvihfhvdhdjeb just ndjhdhdbf
Explanation:
dgdgdhjfjrhrhdjrbbrhtyrhhdhrhdhurhhrtrhdh
Similar questions
Computer Science,
5 months ago
Geography,
5 months ago
English,
5 months ago
Hindi,
1 year ago
Physics,
1 year ago