Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In C++, Write a program for the accounting department of a production plant to process employees' weekly pay. 0 1 O For each employee, the

image text in transcribed

In C++, Write a program for the accounting department of a production plant to process employees' weekly pay. 0 1 O For each employee, the user is required to enter three data items: ID Number, Hourly Wage, and Number of Hours Worked during a given week. Pay calculation is based on the following: Each employee will be paid double for all hours worked more than 40 if an employee worked 35 hours at $12.50 per hour: gross pay: 35 x 12.50 = $437.50 if an employee worked 44 hours at $12.50 per hour: gross pay: (40 x 12.50) + 2 x (4 x 12.50) = $600.00 A tax amount of 18% of gross pay will be deducted if the gross pay exceeds $1000 tax amount of $1550.00: 1550 x 18% = $279.00 net pay: 1550.00 279.00 = $1271.00 Otherwise, the tax amount will be 15% of gross pay tax amount of $850.00: 850.00 x 15% = $127.50 net pay: 850.00 127.50 = $722.50 The program output should use and show proper labels of the employee's ID number, hourly wage rate, number of hours worked, gross pay, tax rate, tax amount, and net pay. The program should allow the user to continuously calculate employee payroll until the user decides to quit. . 0 O 0 . The information below is to be used for data testing purposes: Employee ID 1 2 3 Hourly Rate 15.75 15.00 13.25 14.75 Hours Worked 35.00 46.75 80.00 48.00 Gross Pay 551.25 802.50 1590.00 826.00 Tax Amount 82.69 120.38 286.20 123.90 Net Pay 468.56 682.12 1303.80 702.10 4

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

More Books

Students also viewed these Databases questions