Design a program that computes pay for employees. Allow a user to continuously i
ID: 3534277 • Letter: D
Question
Design a program that computes pay for employees. Allow a user to continuously input employee's names until an appropriate sentinel value is entered. Also input each employee's hourly gross pay (hours times rate), withholding tax percentage (based on table 6-5), withholding tax amount, and net pay (gross pay minus withholding tax). Display all the results for each employee. After the last employee has been entered, display the sum of all the hours worked, the total gross payroll, the total withholding for all employees, and the total net payroll.
Table 6-5
Weekly Gross Pay ($) Withholding Percentage (%)
0.00-300.00 10
300.01-550.00 13
550.01-800.00 16
800.01 and up 20
Explanation / Answer
Here it is. Hope it helps you.
100% correct logic. Kindly rate for it.
start
Declarations
string empName
num salary
num hrsWorked
num x
num grossPay
num withTax
num netPay
num totalGrossPay = 0
num totalHrsWorked = 0
num totalWithTax = 0
num totalNetPay = 0
string QUIT =
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.