i Preview File Edit View Go Tools Window Help 0 0 0 Dr Q QD

i Preview File Edit View Go Tools Window Help 0 0 0 Dr Q QD B W BB 8% C4) Fri 8:38 AM Q IE 6 Shorl Lab 8.pdf (page 2 of 2) Q Search Shorl Lab 8.pdf Problem 4) Suppose the current annual cost at a state school is $6000. The family in Problem 3 (with help of an expert) has predicted the following rate (in percentage) of cost increase in education for the next 22 years. Use a loop to determine the cost of education for the next 22 years. Plot the cost of education versus time. percent Rate = [8, 9, 8, 10, 12, 9, 6, 5, 4, 6, 8, 10, 8, 12, 105, 6, 9, 10, 8, 9,6] Note: Explicitly display the annual cost of education at the beginning of years 19 to 22. Problem 5) suppose the account in Problem 3 will be locked after 18 years. That is the couple cannot make any more contribution, and the account will not receive any more interest, at the beginning of year 19. Do the parents have enough saving for their child\'s fouryear education starting year 19? How much surplus or deficit do they have? Note: Explicitly display the amount of surplus or deficit. 9 A 9 W S LT Ps ® 7o o o A 0 Wur

Solution

4) p(0)=6000;

r=[8 9 8 10 12 9 6 5 4 6 8 10 8 12 10 5 6 9 10 8 9 6];

for n=1:1:22

P(n)=p(n-1)+ p(n-1)*r(n)/100;

end

Plot(p,n);

 i Preview File Edit View Go Tools Window Help 0 0 0 Dr Q QD B W BB 8% C4) Fri 8:38 AM Q IE 6 Shorl Lab 8.pdf (page 2 of 2) Q Search Shorl Lab 8.pdf Problem 4)

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site