HW2 #2 - k = 20 fprintf('Case 2, k=20: Amount = %f\n',...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Sheet1 Page 1 %Engineering 6, Spring 2004, Problem 2.2 %Ryan Uy, 2509 %Section B05, Tues. 3-4 %Given equation: Amount = M(1+i/100)^k format bank %Case 1, k=20 M = 5000 i = 5 k = 20 fprintf('Case 1, k=20: Amount = %f\n', M*(1+i/100)^k) %Case 1, k=40 k=40 fprintf('Case 1, k=40: Amount = %f\n', M*(1+i/100)^k) %Case 2, k= 20 M = 5000 i = 7.5
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: k = 20 fprintf('Case 2, k=20: Amount = %f\n', M*(1+i/100)^k) %Case 2, k=40 k=40 fprintf('Case 2, k=40: Amount = %f\n', M*(1+i/100)^k) %Case 3, k= 20 M = 5000 i = 10 k = 20 fprintf('Case 3, k=20: Amount = %f\n', M*(1+i/100)^k) %Case 3, k=40 k=40 fprintf('Case 3, k=40: Amount = %f\n', M*(1+i/100)^k)...
View Full Document

Ask a homework question - tutors are online