Question: I need help with my C++ homework. Phase 2: Expand the Employee Payroll program to include hourly based and salary based employees (at least 5

I need help with my C++ homework.

Phase 2:

Expand the Employee Payroll program to include hourly based and salary based employees (at least 5 employees). This phase uses an array of employee objects, inheritance for different classes of employees, and polymorphism for salary computation. The 52 week yearly salary as well as the number of overtime hours worked by a salary based employee is given. For salary based employees, to find the regular pay for a week, divide the salary by 52. To compute the overtime pay for a salary based employee, first find the hourly rate by dividing the regular pay by 40, and then compute overtime pay. For every employee, overtime pay, tax amount, and net pay must also be computed. In addition, the program should find the minimum and maximum net pay of all employees as well as sort the employees based on their net pay (ascending order).

My current code is:

https://pastebin.com/6kL5pLLi

and my input file looks like this:

https://pastebin.com/1dMUBHgH

I can get the code to run but nothing actually pops up in the box. Help! I've tried looking at other solutions on here but keep getting more and more confused.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!