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  

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

1 Expert Approved Answer
Step: 1 Unlock

I see that youve presented an assignment that requires writing a program to calculate interest on a ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!