Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

A company pays its employees on a weekly basis. The company has three types of employees: Salaried employees, who are paid a fixed weekly salary

A company pays its employees on a weekly basis. The company has three types of employees: Salaried employees, who are paid a fixed weekly salary regardless of the number of hours worked;

Hourly employees, who are paid by the hour and receive overtime pay;

Commission based employees whose pay is based on a fixed weekly base pay of $500 plus 10% of the total sales for that week.

For example, a weekly sale of $10,000 would earn the employee a total of $1,500 ($500 base pay + $1,000 in commission) for that week.

Create a console-based object-oriented C++ application that Calculates weekly pay for an employee. The application should display text that requests the user input the name of the employee, type of employee, and the weekly salary, if it's a salaried employee, or hourly rate and hours worked in the week, if its an hourly employee.

For hourly employees, the rate will be doubled if its beyond 40 hours/week.

The program should then print out the name of the employees, employee status, total hours worked for the week, and hourly rate if applies, and the weekly payment amounts. In the printout, display the dollar symbol ($) to the left of the weekly pay amount and format the weekly payment amount to display currency. The program should print the list in certain order, for example, by employee type, then by wage, and then by total pay.

Implements the following features that allows the user to: o Reward selected salaried employees by adding 10% to their salaries. Your program should display an asterisk (*) to the upper right of the weekly pay amount, and a note stating bonus added below the table, as shown below:

Name Status Hours Sales Wages Pay

James Hogan Salaried - - $75.00 $3,300.00*

Jennifer Waltz Hourly 45 - $10.95 $547.50

Molly Smith Hourly 32 - $15.00 $480.00

Bob Wagger Commissioned - $20,000 $500.00 $2,500.00

Joan Han Salaried - - $65.00 $2,860.00*

Submission

A design document (depicting the classes, and their relationships) Provide at least 5 test runs. Test runs should include at least each and every type of employee, and the report

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

Larry Ellison Database Genius Of Oracle

Authors: Craig Peters

1st Edition

0766019748, 978-0766019744

More Books

Students also viewed these Databases questions