CSE 110 Lab # 4 – Order of Operations & Functions
Modify Lab 3 to calculate a pre-tax (before withholding tax) IRA(Individual Retirement Account) deduction from gross pay using afunction that returns the IRA deduction. The function must returnthe IRA deduction amount in dollars. No global variables areallowed.
If gross pay is greater than $400 and less than $500, deduct5%
If gross pay is $500 or more, deduct 10%
IRA contributions build a retirement account and lower gross payfor income tax purposes. This is why the reduction is made fromgross pay prior to the tax withholding amount calculation. Anexample of the benefit is shown
PayPal Gateway not configured
PayPal Gateway not configured