Design a Java payroll program that prompts the user to enter an employee's hourly pay rate and
Fantastic news! We've Found the answer you've been seeking!
Question:
Design a Java payroll program that prompts the user to enter an employee's hourly pay rate and the number of hours worked.
Validate the user's input so that only the pay rates in the range of $7.50 through $18.25 and hours in the range of 0 through 40 are accepted.
If incorrect hourly rate inputs prompt the user to enter pay again
If incorrect hours are input prompt the user to enter hours again
The program should also calculate the employee's gross pay only when correct totals are entered.
Related Book For
Introduction to Java Programming, Comprehensive Version
ISBN: 978-0133761313
10th Edition
Authors: Y. Daniel Liang
Posted Date: