Question: ( 2 0 pt ) You deposit $ 1 0 , 0 0 0 initially and $ 5 , 0 0 0 at the end

(20 pt) You deposit $10,000 initially and $5,000 at the end of each year. The account pays 5% annual interest.
a. Use a while loop in MATLAB to determine how many years it will take to accumulate $1,000,000 in your bank account
b. How much will you have in your bank account at the end of 10 th year?
c. Write a function called 'f_millionaire' based on what you created for (a), which received 4 inputs (target amount of money, the annual interest rate, initial deposit, annual saving) and provides 1 output (the years it takes to achieve the target money you select as the input).
d. Validate the function you created by running it and checking if you get the same result as what you got from (a).
( 2 0 pt ) You deposit $ 1 0 , 0 0 0 initially

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 Accounting Questions!