Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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. 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 throughStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started