Programming Exercise • Write a program that calculates gross wages for an hourly employee. The program should prompt use
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Programming Exercise • Write a program that calculates gross wages for an hourly employee. The program should prompt use
Programming Exercise • Write a program that calculates gross wages for an hourly employee. The program should prompt user to enter the pay rate and hours of work. - Hours from 0 through 40 are "straight time" pay, - Any hours in excess of 40 are overtime pay at 1.5 times the standard rate. - Handle ValueException exception if invalid inputs are entered. Display the wages with 2 decimal places.