Question: Hello, I really have trouble trying to create a C++ program for this. Can someone please help me? 1. Brief Discussion A 401(k) is a

Hello, I really have trouble trying to create a C++ program for this. Can someone please help me?

Hello, I really have trouble trying to create a C++ program forthis. Can someone please help me? 1. Brief Discussion A 401(k) isa feature of a qualified profit-sharing plan that allows employees to contributea portion of their wages to individual accounts. Elective salary deferrals areexcluded from the employee's taxable income (except for designated Roth deferrals). Employers

1. Brief Discussion 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. ((1+i)" -(1+g)") FV = Pmt x (i-9) FV=Future Value Prot=Period payment i=Discount rate g=Growth rate n=Number of periods Total Account Value (TAV) (YC + EC) X rate + (nx12) -1 rate (nx12) = CB X (1+ rate + 12 12 (rate 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 Annual Salary x Contribution to 401k YC = 12 EC = YC x Employer Match Annual salary (5) 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. 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. Task Write the C++ 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 Struct to hold the fields as attributes. You can include memberon-member functions when they are needed to assign values to the attributes. You will only use member functions of an object to accept input and display the summary. Refer to the main program below. int main() { StassName> ; //Define your own class name and object name. cout .(); //Call a member function for input. .(); //Call a member function for output. return; } Hint: Declare one member function for input and another for output. The program will compute for the Total Account Value (TAV) at the age of retirement. Use the following screenshot as your reference and to calibrate your program. C. C:\WINDOWS\system32\cmd.exe Internal Revenue Code: Section 401(k) Annual Salary ($): 35000 Annual Salary Increase (%): 2.5 Annual Rate of Return (%): 7.4 Current Age: 32 Retirement Age: 61 Current 401k Balance ($): 2000 Contribution to 401k (%): 8 Employer Match (%): 25 Employer Max Contribution (%): 5 Your 401(k) Summary Annual Salary ($): 35000.00 Annual Salary Increase (%): 0.03 Annual Rate of Return (%): 0.07 Current Age: 32 Retirement Age: 61 Current 401k Balance ($): 2000.00 Contribution to 401k (%): 0.08 Employer Match (%): 0.25 Employer Max Contribution (%): 0.05 Total Account Value at Age 61: $373640.85 Press any key to continue ... 3. C++ Source Code Grading Criteria 30 Used Struct with working member functions. 30 Called member function of an object to accept input. 20 Called member function of an object to display summary. 20 Total Account Value matches result of master formula. 100 When you are ready to submit your work, provide your own values for the fields with a question mark. Please provide reasonable and realistic values. ? ? 3.6 ? 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 (%): ? ? ? 25 5 Submit your source code and a screenshot of your final output

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!