Answered step by step
Verified Expert Solution
Question
1 Approved Answer
This is a matlab question solving problems with loops. didnt get much information, just what i posted. Suppose that you start a new savings account
This is a matlab question solving problems with loops.
didnt get much information, just what i posted.
Suppose that you start a new savings account with an initial deposit of 1,000 and that from then on you deposit 1,200 a month. The account collects 3% annual interest. The accumulated balance at the end of the kth month can be represented by the recursion: y(k) = y(k-1)+ry(k-1) +1200, k 2 and initialized at y(1) - 1000, with effective monthly rate of r = (3/100)/12 = 0.0025. Using a for-loop determine how many months it would take to reach a desired balance of 500,000. Repeat the previous part using a conventional while-loop, Repeat using a forever while-loop. Make a plot of the balance y() versus d. Plot the horizontal axis in months, and the vertical axis in thousands of pounds. Add the ending balance on the graph. Write a function, account, that uses method above, and given the initial balance ya, annual percentage rate R. monthly deposit I, and desired final balance Wear, it returns the vector of monthly balances y until the goal of ymes is reached. It must have usage: y account, R., Ymer). Note that the length N of the array ( ) is the required number of months to reach the savings goal, and y(N) is the ending balance, which should be just a bit higher than ymas Step 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