• Home
  • Blog
  • Create an application that will calculate the taxes and net pay for an employee. INPUT: employee ID  (5 digit code) employees hourly rate employees…

Create an application that will calculate the taxes and net pay for an employee. INPUT: employee ID  (5 digit code) employees hourly rate employees…

0 comments

Create an application that will calculate the taxes and net pay for an employee.

INPUT:

employee ID  (5 digit code)

employees hourly rate

employees hours worked

OUTPUT:

employee ID

employees gross pay   

Taxes withheld  

employees net pay 

PROCESSING:

using the input values for the hourly rate and the hours worked, calculate the employees gross pay 

hours worked  X  hourly rate

calculate the taxes to be withheld from the employees pay using the table below to create the decision statements necessary to select the correct tax percentage based on the amount of the gross pay.

add to that an additional 7.65% for FICA and for Medicare/Medicaid taxes.

gross pay  X  (value from table  +  7.65)%

calculate the employees net pay 

gross pay  –  taxes

TAX TABLE:

gross pay greater than or = to

gross pay less than

tax percentage

0

167.00

10%

167.00

679.00

15%

679.00

1647.00

25%

1647.00

3435.00

28%

3435.00

99999.00

33%

 

 

About the Author

Follow me


{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}