happykiddo
  • happykiddo
Write an algorithm to settle the following question: A bank account starts out with 10,000. Interest is compounded monthly at 0.5 percent per month. Every month, $500 is withdrawn to meet college expenses. After how many years is the account depleted? – Note you don’t have to supply the number of years it takes the account to deplete just the “algorithm” that would be used to answer that question.
Computer Science
  • Stacey Warren - Expert brainly.com
Hey! We 've verified this expert answer for you, click below to unlock the details :)
SOLVED
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.
jamiebookeater
  • jamiebookeater
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
happykiddo
  • happykiddo
initial_amount = 10000 interest_per_month = 0.5 withdrawn_per_month = 500 final_amount = 0 new_amount1 = ((initial_amount * interest_per_month) + interest_per_month) - withdrawn_per_month new_amount2 = ((new_amount1 * interest_per_month) + interest_per_month) - withdrawn_per_month new_amount3= ((new_amount2 * interest_per_month) + interest_per_month) - withdrawn_per_month
happykiddo
  • happykiddo
This is how far I've gotten. How would I loop this until whatever "new_amount" is equal to 0. And by the way I'm using Python.

Looking for something else?

Not the answer you are looking for? Search for more explanations.