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!