Question: Write a program that will calculate interest on a bank deposit and add that interest to the account's balance. Assume the initial deposit is
Write a program that will calculate interest on a bank deposit and add that interest to the account's balance. Assume the initial deposit is $10,000 (year 0). Your program should reflect the following pseudocode description of this logic: Repeat the following steps while the balance is less than $20,000. Add 1 to the year value. Compute the interest as balance x 0.05 (i.e., 5 percent interest). Add the interest to the balance. When the loop finishes, print the final year number and the number of years it took to reach $20,000 (assuming no withdrawals).
Step by Step Solution
There are 3 Steps involved in it
I see that youve presented an assignment that requires writing a program to calculate interest on a ... View full answer
Get step-by-step solutions from verified subject matter experts
