subject

Write an algorithm to settle the following question: A bank account starts out with $10,000. Interest is compounded monthly at 6 percent per year (0.5 percent per month). Every month, $500 is withdrawn to meet college expenses. After how many years is the account depleted?

Here is what I got so far. Can you tell if I am on the right track.

Step 1 Start with the table:
Month Balance
0 $10,000.00

Step 2 Repeat steps 2a, 2b, 2c while the balance is greater than $0.00
Step 2a. Add a new row to the table.
Step 2b. In column 1 of the new row, labeled "Month", put one more than the preceding month value.
Step 2c. In column 2 of the new row, labeled "Balance", place the value of this formula
b * (1 + 0.005) - 500
where b is the preceding balance value.

Step 3 Read the last number in the month column (let's call it months). Report that the account will be depleted in (months / 12) years and (months % 12) months.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 15:00
Convert the quartstogallons class to an interactive application. instead of assigning a value to the number of quarts, accept the value from the user as input.
Answers: 2
question
Computers and Technology, 21.06.2019 16:00
Speed is how fast an object moves a certain distance within a length of time. how is speed calculated? a) distance/time b) time/distance c) velocity/time d) distance x time
Answers: 1
question
Computers and Technology, 22.06.2019 10:30
Choose the best explanation for the following statement communication is symbolic
Answers: 3
question
Computers and Technology, 22.06.2019 20:00
Which type of file can be used to import data into a spreadsheet?
Answers: 1
You know the right answer?
Write an algorithm to settle the following question: A bank account starts out with $10,000. Intere...
Questions
question
Mathematics, 09.12.2019 15:31
question
Mathematics, 09.12.2019 15:31