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?
Our community of experts have been thoroughly vetted for their expertise and industry experience.
The Distinguished Expert awards are presented to the top veteran and rookie experts to earn the most points in the top 50 topics.