Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

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

Database Security

Authors: Alfred Basta, Melissa Zgola

1st Edition

1435453905, 978-1435453906

More Books

Students also viewed these Databases questions

Question

What is conservative approach ?

Answered: 1 week ago

Question

What are the basic financial decisions ?

Answered: 1 week ago