on up back w3c Fifth International World Wide Web Conference

Application Execution

% java Mortgage
Enter principal (e.g. 8250.00 :
14000
Enter annual interest rate (e.g. 10.25) :
10
Enter number of years :
4

principal=14000  interest=0.1  years=4
payment total   interest principal balance
number  payment payment payment
                                14000
1       355.07  116.66  238.41  13761.60
2       355.07  114.68  240.39  13521.20
3       355.07  112.67  242.40  13278.80
...
47      355.07  5.84    349.23  352.14
48      355.07  2.93    352.14  0
%


Java - An Introductory Language Tutorial (E.A.Johnson)