Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Create a class named Pay that includes variables of type double that hold rate o

ID: 3631579 • Letter: C

Question

Create a class named Pay that includes variables of type double that hold rate of pay per hour and withholding rate percent. Gross pay is computed as hours worked times rate of pay per hour. Net pay is calculated as gross pay minus (gross pay times withholding rate). For example, if the withholding rate is 25% and gross pay is $100, then net pay would be $100 - (100 * .25).

b. Create two overloaded methods named computeNetPay(), each of these methods will take different parameters and will calculate net pay based . These methods are to return the calculated value which will be displayed by the caller.

c. When computeNetPay receives one arguments (hours worked), calculate net pay as described in step A.

d. When computeNetPay() receives two arguments (hours worked and bonus amount), calculate gross pay as in step A, add the bonus amount to the gross pay, and then calculate the net pay by applying the withholding against the gross pay.

e. Write a main() method that instantiates the class and calls both of the overloaded methods and displays their return values.

f. Name the file Pay.java and submit it using the WA2 link above.

Explanation / Answer

http://www.dreamincode.net/forums/topic/161425-having-trouble-understanding-what-my-instructor-wants-me-to-do-and-ho/ please visit the link above..that might be useful

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote