0

When Bongi's new baby, Sipho, was born,she opened a savings account woth R1000.00. On each daybitthday,starting with the first,the bank added 4.5% of the balnce and Bongi added another R500.00 to the account.Write a loop that will calculate how much money was in the account on Sipho's 18th birthday?

6th Mar 2017, 11:18 AM
johnson
johnson - avatar
2 Respostas
0
double amt=1000; for(int i=1;i<=18;i++){ amt=amt+(0.045*amt)+500; } Hence amt has the final ans.
6th Mar 2017, 11:39 AM
Meharban Singh
Meharban Singh - avatar
Quente hoje
.
1 Votes
What?
0 Votes
HTML
0 Votes
Web
0 Votes
Quiz duel
0 Votes
FRC Coding?
1 Votes
AI
2 Votes
help
0 Votes
APIs
1 Votes