troubleshooting Question

Program that calculates witholdings in a paychec?

Avatar of Member_2_4942450
Member_2_4942450 asked on
JavaProgramming
53 Comments2 Solutions710 ViewsLast Modified:
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?
ASKER CERTIFIED SOLUTION
Mick Barry
Java Developer

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Top Expert 2010

The Distinguished Expert awards are presented to the top veteran and rookie experts to earn the most points in the top 50 topics.

Join our community to see this answer!
Unlock 2 Answers and 53 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 53 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros