You should have already written a payroll program for a company where single people get paid $10 per hour and married people get paid $15 per hour and they get paid an extra $1 per hour for their first four children and revised it to include income tax.
This time, you are divide the program into several methods:
getMarital Status()
- which returns true
if the employee is married, false if not. Remember to have it return a boolean.
getHours()
- which returns hours
worked.calcGrossPay(payRate, hoursWorked)
- which
returns the gross pay.calcNetPay(grossPay)
- which returns the
net pay.printStub(payRate, hoursWorked, numKids, grossPay, netPay)
- which prints your pay stub (payroll information).If you need to remember the details, check Programming Assignments 4 and 5.