I only have one problem with your code. Why are you taking the hoursWorked % 10 for hourly people who work overtime? For an 80 hour week (God forbid) one would only be paid for 40 hours. 80 % 10 = 0; Should this not be:
Code:
... (hoursWorked - 40) * ...
Just wondering,
- Ted