Question: Please find the solution for #2 using Matlab. Thank you! 1. Many large companies encourage their employees to contribute a portion of their salary toward

 Please find the solution for #2 using Matlab. Thank you! 1.

Please find the solution for #2 using Matlab. Thank you!

1. Many large companies encourage their employees to contribute a portion of their salary toward their 401(K) savings plan by matching employees' contribution to a certain percentage. Saving is tax-free before it is actually used. Hence, government puts a maximum pre-tax money that could be saved in a 401(K) plan. Following table show the percentage of tax-free salary that each employee can save based on the salary tiers, and the company's contribution toward the saving. Write a function (called "retirement") that takes your salary as input, and return savings in your 401(K) in terms of your contribution, your company's contribution, and total annual savings. (10 points) 2. Use the function retirement.m in a "while loop" to determine how many years you should work with a starting salary of $45,000, given the fact that you are entitled to a raise of 1% in salary each year, to save $50,000 in your 401(K) savings plan. (10 points) Hint: You would need to define the threshold of while loop based on the total of $50,000 savings. You will also need a counter variable defined before while loop, which in turn increases ( counter = counter +1 ) each time the loop goes through

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!