Question: Write a c++ code Private members of class Employee Emp_ID string Emp_Name string designation string salary float Weekly_hours int Public member functions of class Employee

    • Write a c++ code 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, and Weekly_hours of work per day of the 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.



Step by Step Solution

3.38 Rating (148 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Only the Employee class include include for string class using namespace std Declare the Employee cl... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!