Question: Java programming problem, having some difficulties with this one... Write a computer program that computes a payroll. The input to the program is: Number of
Java programming problem, having some difficulties with this one...
Write a computer program that computes a payroll. The input to the program is:
Number of hours worked in a week (cant be more than 168, or less than 0)
Rate per hour in dollars and cents (i.e. 8.75, must be positive)
You are to compute and display:
Number of overtime hours (Number of hours worked in a week 40)
Cant be less than 0
Base pay = (number of hours worked - overtime hours) * Rate per hour
Overtime pay = overtime hours * Rate per hour * 1.5
Gross pay = base pay + overtime pay
Deductions = tax + ss + med
Net pay = gross pay Deductions
Deduction information:
ss (social security tax) = 10% of gross pay
med (Medicare) = 6% of gross pay
Tax Table based off Gross pay:
Less than $43 0%
$43.01 - $218 10%
$218.01 - $753 15%
$753.01 - $1,762 25%
$1,762.01 - $3,627 28%
$3,627.01 - $7,834 33%
$7,834.01 - $7,865 35%
Above $7,865 39.6%
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
