Question: WRITE CODE IN C++ LANGUAGE AND DONT USE BREAK STATEMENT. CSE 110 Lab # 4-Order of Operations & Functions Modify Lab 3 to calculate a

WRITE CODE IN C++ LANGUAGE AND DONT USE BREAK STATEMENT. CSE 110Lab # 4-Order of Operations & Functions Modify Lab 3 to calculateWRITE CODE IN C++ LANGUAGE AND DONT USE BREAK STATEMENT.

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 a function that returns the IRA deduction. The function must return the IRA deduction amount in dollars. No global variables are allowed If gross pay is greater than $400 and less than $500, deduct 5% If gross pay is $500 or more, deduct 10% IRA contributions build a retirement account and lower gross pay for income tax purposes. This is why the reduction is made from gross pay prior to the tax withholding amount calculation. An example of the benefit is shown at the end of this document. Modify the output to show the amount deducted for the IRA, and the modified gross pay as shown below SAMPLE OUTP Total Hours Worked - Hourly pay rate $ Base pay $ Overtime hours at time and a half- Overtime pay at time and a half $ Overtime hours at double time Overtime pay at double time $ Gross pay -$ IRA Deduction = $ Modified Gross Pay-$ Taxes withheld $ Net pay$ Example: Saving in an IRA reduces gross pay for tax purposes. In this example $55.00 is saved but the cost (change in take home pay) is only $39.60 since taxes are lowered by $15.40 OT Pay Hours of OT at Time and a half 10 OT Pay at Time and a half $150.00 Hours of OT at Double Hourly Pay Hours at Double Modified Gross P Gross IRA Time Withheld Rate $10.00 Worked De 0 Base Pa Net Pa $396.00 50 $400.00 0 0.00$550.00 0.00$550.00 $154.00 138.60 15.40 10.00 150.00 550.00 356.40 $39.60 50 10 55.00 495.00 $55.00 Test data on next page

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!