Question: 4: Write an algorithm for the following question: A bank account starts out with $X. Interest is compounded monthly at Y% per month. Every month,

4: Write an algorithm for the following question: A bank account starts out with $X. Interest is compounded monthly at Y% per month. Every month, $Z is withdrawn for expenses. After how many years is the account depleted? Include the answer generated by your algorithm for X=10,000, Y=0.5, and Z=500
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
