Guest User

Untitled

a guest
Jun 22nd, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. Create a payroll program that calculates a paycheck when the number of hours and the wage (how much the person makes per hour) are entered. When the user presses the Gross Pay button, the program will calculate the gross pay. Don’t forget the overtime (overtime is any hours over 40). Overtime is time and one half. So if I worked 41 hours and I get paid $10.00 per hour, my gross pay would be $415.00. If I worked 41.5 hours, my gross pay would be $422.50. You should only display 2 decimal places, and show a dollar sign in the answer.
  2. You must to use a function to calculate overtime and a function to calculate gross pay. The overtime function must return the overtime amount.
  3.  
  4.  
  5. Hours Worked
  6.  
  7.  
  8. Wage per Hour
  9.  
  10. Gross Pay
  11.  
  12.  
  13.  
  14. Gross Pay
Add Comment
Please, Sign In to add comment