Write a c++ code Private members of class Employee Emp_ID string Emp_Name string designation string salary float
Fantastic news! We've Found the answer you've been seeking!
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
- 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.
Related Book For
Java An Introduction To Problem Solving And Programming
ISBN: 9780134462035
8th Edition
Authors: Walter Savitch
Posted Date: