Question: This is a matlab question. All I know is that y(1)= 1000; r=(3/100)/12= 0.0025; while (k>=2) y(k)= y(k-1)+r.y(k-1)+1200; print (y(k)); a) for-loop can be written

This is a matlab question. All I know is that y(1)= 1000; r=(3/100)/12= 0.0025; while (k>=2)
y(k)= y(k-1)+r.y(k-1)+1200; print (y(k));
a) for-loop can be written while the value of y(k)= 500000 in the formula above, and the value of y can be found out.  This is a matlab question. All I know is that y(1)=

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: v(k) = y(k-1)+ry(k-1) + 1200, 4 > 2 and initialized at y(1) - 1000, with effective monthly rate of (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 (k) versus di 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 yun annual percentage rate R. monthly deposit and desired final balance max, it returns the vector of monthly balances y until the goal of me is reached. It must have usage! y = account, R. a.). Note that the length of the array v is the required number of months to reach the savings goal, and (N) is the ending balance, which should be just a bit higher than ymur

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!