Question: Criteria Program documentation:........................................................ 5 Menu for 3 shifts.................................................................... 5 If statements........................................................................ 20 Use of mnemonic variable names:........................................... 5 Use of constants................................................................... 10 Programming style............................................................... 10

 Criteria Program documentation:........................................................ 5 Menu for 3 shifts.................................................................... 5 If statements........................................................................

Criteria

Program documentation:........................................................ 5

Menu for 3 shifts.................................................................... 5

If statements........................................................................ 20

Use of mnemonic variable names:........................................... 5

Use of constants................................................................... 10

Programming style............................................................... 10

Program runs and produces the intended results................... 20

Output alignment................................................................. 10

Pseudocode......................................................................... 15

Payroll processing The purpose of this project is to practice interactive input, decision making using if statement, Sample output: mathematical operations and formatting output using manipulators. Write a C++ program that will process a payroll for employees in a company based on the program specifications, the program is to process one employee at a time. Program specifications: The program should accept employee first name, number of hours worked, the hourly pay rate for each employee, then display a menu of three shifts, first, second and third with bonus rates to select from. Program should calculate the state taxes, federal taxes, social security, medical cost, total deductions, overtime pay, gross pay and net pay for each employee. Base hours is 40 hours and any hour over 40 will get overtime pay of 1.5 of regular pay. If you work third shift you get 20% of your salary as bonus, if you work second shift you get 10% of your salary as a bonus, if you work first shift you get 0% bonus. the amount of bonus should be calculated on the gross pay. Sample menu for the shifts to select from: Selection from the menu should be 1,2 , or 3 . No data validation for selection Use an if statement to decide the bonus rate and the work shift as follow: bonus =xx Work Shift: xxx= (First, Second, Third) shift =xxx Bonus amount: xxcxx ( Calculated amount ) Deductions: State tax rate =.07 Federal tax rate =.15 Social Security =.17 Medical =.03

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!