Question: In Matlab write a function called 'targetBalance.m that uses the variables and equation below. That allows a user to deposit a certain amount annually into

In Matlab write a function called 'targetBalance.m that uses the variables and equation below. That allows a user to deposit a certain amount annually into an account that earns interest with a target amount in mind. This function should a ccept the initial deposit, amount deposited annually, the interest rate, and the number of times interest is compounded annually, and the target amount the user is seeking.
This function should return the user the time (in years) needed to reach the target amount, as well as, a table with all annual values. Also provide the user with a graphical representation of the growth.
 In Matlab write a function called 'targetBalance.m that uses the variables

where r nt A P 1 A E amount of money accumulated after n years, including interest P principal amount (the initial amount you borrow or deposit) r annual rate of interest (as a decimal t number of years the amount is deposited or borrowed for n number of times the interest is compounded per year

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!