Reference no: EM133218785
Question: 1. All employees receive 7% of their total sales for a month
2. The Federal Tax rate is 18%
3. The Social Security Tax rate is 6%
4. The employee also contributes 10% to their retirement fund.
When the user runs the app, the first name, the last name, and the total sales for the month should be requested. These values should be used with a constructor to instantiate the Employee object.
Write methods within the Employee class to calculate the commissioned income, federal and social security tax withholding amounts, and the amount withheld for retirement.
Use constants for the Federal tax withholding rate, Social Security tax withholding rate, and commissioned income rate.
Use a property to get at least one calculated value from the Employee class to display to the user.
Display the employee name (first and last), the gross income, the federal tax amount withheld, the social security tax amount withheld, the retirement contribution amount withheld, and the resulting net pay.