A person invests $10000.00 in a savings account. Assuming that all interest is l
ID: 3616752 • Letter: A
Question
A person invests $10000.00 in a savings account. Assuming that all interest is left
on deposit in the account, calculate and print the amount of money in the account at
the end of 10 years for interest rates of 1, 2, 3, 4, 5, 6, 7, 8, 9 and 10%.
Use the following formula for determining these amounts:
a = p ( 1 + r) ^ n
where p is the principal, r is the annual interest rate, n is the number of years, and
a is the amount on deposit at the end of the nth year.
Expected Output:
Rate Amount at the end of 10th year
==== ===========================
0.01 11046.22
0.02 12189.94
0.03 13439.16
0.04 14802.44
0.05 16288.95
0.06 17908.48
0.07 19671.51
0.08 21589.25
0.09 23673.64
0.10 25937.42
Explanation / Answer
please rate - thanks #include #include #include using namespace std; int main() {double invest=10000.; int y=10,i; coutRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.