We help IT Professionals succeed at work.
Get Started

Program that calculates witholdings in a paychec?

Last Modified: 2012-05-11
I am looking to create a program in java that calculates pay.

Hours worked?
Rate of pay per hour?
Witholding rate?
Gross pay?
Net Pay?

I was thinking about creating 3 methods something like computeNetPay() method.
The computeNetPay receives the values for hours, pay rate and withholding rate.
It would then compute the gross pay and reduces it by the appropriate withholding amount to produce net pay.

To calculate gross is putting hours worked times pay per hour)

I want to use computerNetPay() to receive two parameters, they represent the hours and pay rate, and the withholding rate.
I can assume for this program that it is 15%

Hourly rate is assumed to be 5.85

Any help?
Watch Question
Java Developer
Top Expert 2010
This problem has been solved!
Unlock 2 Answers and 53 Comments.
See Answers
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE