Please help me with a while loop problem
이전 댓글 표시
A person wants to save for a trip which will cost $12000 , initial deposit $4000 invested at interest of 5.8% per annum and plan to deposit $400 every month,
1)write a code which uses a loop statement to determine how many months are required for the savings to exceed $12000
2)Amount=Amount(1+(rate/1200))+400 using this code get it to display the number of months required and the total amount saved
1)is this right dep = 400; amount = 4000; year = 0; while account = 12000 amount = amount(1+((0.058/1200)) + 400; end
2) dont understand
댓글 수: 3
@Mike: It is a very bad idea to mask your message with rubbish. This is impolite to the ones, who have spent time to create answers. See: http://www.mathworks.com/matlabcentral/answers/16153-is-deleting-threads-helpful-in-this-forum
Cedric
2013년 4월 28일
And finally, like many others on this forum, I'll stop helping people with homework questions (unless they provide a full/valid ID).
Randy Souza
2013년 5월 24일
I have restored the original text of this question.
@Mike: this question has a clear subject and an accepted answer, so it may be valuable to someone else in the future. If you have a good reason why it should be removed from MATLAB Answers, please flag the question, explain why it should be deleted, and an administrator or high-reputation contributor will consider deleting the question. Please do not simply edit your question away.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Matrix Indexing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!