Please help me with a while loop problem
Afficher commentaires plus anciens
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 commentaires
@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
le 28 Avr 2013
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
le 24 Mai 2013
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.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Matrix Indexing dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!