Question: I am really having trouble with this c++ programming problem Exam: Section 401(k) Calculator Name: Course Code: Date: Section: 100 pts A 401(k) is a
I am really having trouble with this c++ programming problem




Exam: Section 401(k) Calculator Name: Course Code: Date: Section: 100 pts A 401(k) is a feature of a qualified profit-sharing plan that allows employees to contribute a portion of their wages to individual accounts. . Elective salary deferrals are excluded from the employee's taxable income (except for designated Roth deferrals). Employers can contribute to employees' accounts. Distributions, including earnings, are includible in taxable income at retirement (except for qualified distributions of designated Roth accounts). Source: 401k Plans Internal Revenue Service (irs.gov) The following fields are needed to compute for the Total Account Value of the 401k when an employee retires. Annual Salary ($): Annual Salary Increase %): Annual Rate of Return (%): Current Age: Age of Retirement: Current 401k Balance ($): Contribution to 401k (%): Employer Match (%): Employer Max Contribution (%): The formula to compute for the Total Account Value (TAV) is a modified version of the Growing Annuity Formula. FV=Pmt 11+i"- 1+g") li-9 FV=Future Value Pmt=Period payment i-Discount rate g=Growth rate n=Number of periods **121 YC+ EC ci xj6 1+ rate 12 In 12 rate Total Account Value TAVI=CBX 1 + rate 12 rate 12 12 1 TAV: Total Account Value CB: Current 401k Balance rate: Annual Rate of Return (Must be in decimal format. Example, 8% = 0.08) n: Age of Retirement - Current Age YC: Monthly 401(k) Contribution EC: Employer's Monthly 401(k) Adding YC = Annual Salary * Contribution: 401k i 12 EC=YC * Employer Match Annual salary ($) + Gross annual pay prior to deductions (tax, social security, insurance, etc.). Annual Salary Increase (%) + How much the salary is estimated to increase per annum. Annual Rate of Return (%) Estimate how the 401k investments will grow per annum. Current Age (years) + How old you are now. Age of Retirement (years) When you expect to retire. Current 401k Balance ($) The current balance on the 401k plan, otherwise, enter zero in this field. Contribution to 401k (%) How much of your annual salary will be contributed to the 401k plan? Employer Match (%) The amount the employer will match your contributions. Example, if your monthly contribution is $400 and the employer agrees to pay $200 then enter 50% in this field. Employer Max Contribution (%) Every employer has a maximum amount they can contribute. Example, the employer will not pay more than 50% of what you contribute up to 8% of your annual salary. If your annual salary is $50,000.00 then 10% of that will be $5,000.00 annual contribution. Your monthly contribution is $416.67, and your employer will match that by contributing 50% which is $208.34. If you and your employer agreed to a 50% up to 8% plan, they have a certain maximum they can contribute. 8% of your annual salary is $4,000.00 and when divided into 12 months it is $333.33. Get 50% of $333.33 and your employer's maximum contribution is $166.67. Therefore, instead of contributing $208.34 monthly, they will instead pay $166.67 monthly. 2 Write the program that will prompt the user to input the following fields. Annual Salary ($): Annual Salary Increase %): Annual Rate of Return %): Current Age: Age of Retirement: Current 401k Balance ($): Contribution to 401k (%): Employer Match (%): Employer Max Contribution (%): Create a Class to hold the fields as attributes. You can include memberon-member functions where they are needed. Your main program must only contain the following statements. #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
