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
Step: 1
Only the Employee class include include for string class using namespace std Declare the Employee cl...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get StartedRecommended Textbook for
Java An Introduction To Problem Solving And Programming
Authors: Walter Savitch
8th Edition
0134462033, 978-0134462035
Students also viewed these Programming questions
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
View Answer in SolutionInn App