Computer Science Canada Help Completing The Exercise In Turing |
Author: | Honsly [ Mon Mar 04, 2013 6:21 pm ] | ||
Post subject: | Help Completing The Exercise In Turing | ||
What is it you are trying to achieve? I am trying to complete this Turing exercise. Please feel free to change the code in any way and to repost any code which you think works. Thank You, need it for tomorrow. What is the problem you are having? I have it going pretty well but then it messes up. Here is the exercise: 11. A homeowner takes out a mortgage 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 mortgage is paid off, year by year, until nothing is owing. Describe what you have tried to solve this problem I have tried to create the program but it skips one amount and I don't know why. Post any relevant code (You may choose to attach the file instead of posting the code if it is too long) Here is the best i could do but i don't know why it messes up in the middle. It jumps down by 48 000 instead of 24 000 after $72 000.
Please specify what version of Turing you are using I am using Turing 4.1.1 |