Assignment #6 - 91B
# Assignment #6 - 91B

Assignment 6 (Pascal) T.A. Frank Huang
===================== Due 15 Nov 1991
Weight 30
You are to write a program which tracks the payments of various
home mortgages. For each mortgage you are given the amount of the
mortgage, the annual payment to be made (to be made starting one
year after the mortgage is obtained) and the fixed yearly
interest rate.
For example, the input for one mortgage might look like this:
MORTGAGE = $80000.00
ANNUAL PAYMENT = $20000.00
INTEREST RATE = 10.0%
Your program should output a table for each mortgage with 4 columns,
properly labelled, showing the year, the amount owing on the
mortgage at the beginning of that year, the interest due that year,
and the amount paid on the capital that year for as many years
as it takes to pay off the mortgage.
Assume that the mortgage began on January 1, 1990.
For example, the first 3 lines of output, assuming the input above,
might look like this:
MORTGAGE: $80000 ANNUAL PAYMENT: $20000 INTEREST RATE: 10.0%
YEAR AMOUNT OWING INTEREST AMOUNT PAID ON MORTGAGE
1990 80000 8000 12000
1991 68000 6800 13200
1992 54800 5480 14520
Note that if the annual payment is less than the interest due in the
first year the mortgage will never get paid off!! In this case your
program should print out a suitable message.