Computer Science Canada Another loop Question |
Author: | r29p6 [ Tue Mar 30, 2010 8:55 pm ] |
Post subject: | Another loop Question |
I had this question for turing and im not sure how to solve it. A homeowner takes out a mortagage for $120,000 at 10 3/4% per year. at the end of each year an amount of $24,000 is paid. Write a program to show how the mortagage is paid off, year by year, until nothing is owing. And we need to display the calculations year by year. How do you solve this? |
Author: | Euphoracle [ Tue Mar 30, 2010 10:39 pm ] |
Post subject: | RE:Another loop Question |
Well, you need to write a program to calculate the deduction to the total assuming that yearly amount is paid. Keep in mind the interest--this is 'deducted' from your payments. Continue this until the amount is <$0 |
Author: | r29p6 [ Wed Mar 31, 2010 6:31 am ] |
Post subject: | Re: Another loop Question |
Yeah, I tried it, and this is how the program looks like; but it dosen't work. |
Author: | USEC_OFFICER [ Wed Mar 31, 2010 11:40 am ] |
Post subject: | RE:Another loop Question |
In what way doesn't it work? |