Do While More Records Get name, hours, payrate If hours>40 Basepay=40*payrate Base=40 Overhours=hours-40 Overtime=Overhours*payrate*1.5 Else Basepay=hours*payrate Base=hours Overtime=0 Overhours=0 Endif Grosspay=Basepay+Overtime Display name, basepay, overhours, overtime, grosspay End Do
This week we need to calculate withholdings for each employee paycheck. There are three that must be calculated: State Tax 6%, Federal Tax 15% and Social Security at 7.5%. Add this processing to your pseudo code. Add each tax amount in the output, a total withholding and a gross pay and net pay amount. I need some help getting started.
*** MOD EDIT: Added code tags. Please ***
This post has been edited by JackOfAllTrades: 24 January 2010 - 07:24 AM