Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Download: http://solutionzip.com/downloads/cis247-week-6/
- Create a new project and name it CIS247C_WK6_Lab_LASTNAME. Copy all the source files from the Week 5 project into the Week 6 project.
- Before you move on to the next step, build and execute the Week 6 project.
- STEP 3: Modify the Employee Class
- Define calculatePay() as a pure virtual function. Define displayEmployee() as a pure virtual function. When class Employee contains two pure virtual functions, it becomes an abstract class.
- STEP 4: Create Generalized Input Methods
- Reuse method getInput() from the previous iLab to prompt the user to enter Employee information.
- STEP 5: Modify the Main Method
- Create two employee pointers with:
- Employee * Salaried(10000,3); Employee * Hourly(50, 40, “full time”);
- The first employee pointer refers to a salaried employee and the second employee pointer refers to a hourly employee.
- Prompt the user to enter information for these two pointers and display the calculated result.
- For salaried employee, the following information needs to be displayed:
- Partial Sample Output:
- Screenshot of program output that reads: Employee Information ________________________________________ Name: Nana Liu Gender: F Annual Salary: 60000.00 Weekly Salary: 1500.00 Benefit Information ________________________________________ Health Insurance: PPO Life Insurance: 1.50 Vacation: 21 days Salaried Employee Management level: 3
- For hourly employee, the following information needs to be displayed:
- Partial Sample Output:
- Screenshot of program output that reads: Name: Jackie Chan Gender: M Dependents: 1 Annual Salary: 100000.00 Weekly Salary: 2000.00 Benefit Information ________________________________________ Health Insurance: HMO Life Insurance: 100.00 Vacation: 18 days Hourly Employee Category: full time Wage: 50.00 Hours: 40.00
- Download: http://solutionzip.com/downloads/cis247-week-6/
Add Comment
Please, Sign In to add comment