Project: Amortization Table
Write a program that computes and prints a loan amortization table for a [[Fixed-Rate Loan]]. The amount of the loan, interest rate per annum and the term in years should be supplied on the command line. Your table should have columns for payment month (0 - term * 12), payment amount, principle amount of payment, interest amount of payment, balance after payment. Use the tab character to separate columns. While the column headers and the data man not align when displayed on the string, using tab-delimited columns will make the output of the program easier for other programs to use.
The table should assume a payment is due for each month. This means that the interest rate per month is 1/12th the value entered on the command line. The interest rate should be entered as a decimal value so for example 5% would be entered as 0.05. In addition, the number of terms in months will be 12 times the term in years entered on the command line.
Using floating point variables we will accumulate some small error that causes us to not get to exactly zero balance. If you format the balance to show 16 decimal places you will see this error accumulating. This phenomenom is called accumulation error and is to be expected when working with floating point data.