Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

Only the Employee class include include for string class using namespace std Declare the Employee cl... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Java An Introduction To Problem Solving And Programming

Authors: Walter Savitch

8th Edition

0134462033, 978-0134462035

More Books

Students also viewed these Programming questions

Question

Describe some measurements used in the financial perspective.

Answered: 1 week ago

Question

When should you avoid using exhaust brake select all that apply

Answered: 1 week ago