Question: Write a contract for an algorithm that solves the following problem: A bank account starts out with a user - specified initial balance. Interest is

Write a contract for an algorithm that solves the following problem:
A bank account starts out with a user-specified initial balance. Interest is compounded monthly at a user-specified yearly interest rate (monthly interest rate = yearly interest rate /12). Every month, a user-specified amount is withdrawn to meet college expenses. After how many years is the account depleted?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!