Simple Amortization

See all articles from The Plotter v8 n6
Author(s): R. E. Gerow
Publication: The Plotter
Pub Details: The Plotter v8 n6 (Volume 8, Issue 6)
Date: June 1990
Pages: 6

We are pleased to see some of our long-time members coming up with ways to do “their own thing” and being willing to share this with others. We present you now with a short program submitted to us by one of our members, R. E. Gerow, of Oregon City. We hope that someone will give it a try and maybe even get some use out of it. It is a mortgage amortization program in basic that is easily modifiable. If you have any questions regarding the program, please inquire by mail at the address on the back of this newsletter.

SIMPLE AMORTIZATION

by: R. E. Gerow

   5 CLS
10 PRINT "PRINCEPAL IN $?": INPUT A
15 PRINT "$";A
20 PRINT "% INTEREST?": INPUT II
25 PRINT II;"%"
26 LET I=II/100
30 PRINT "LENGTH IN YEARS?": INPUT Y
35 PRINT Y
40 LET P=A*I/12/(1-(1+I/12)^-(12*Y))
50 PRINT "MONTHLY PAYMENT 1S ";: PRINT "$";INT (P+.5);".00"
60 LET PP=P*Y*12-A
70 PRINT "TOTAL INTEREST PAID ";: PRINT "$";INT ((PP+.005)*100)/100
75 PRINT
80 PRINT "MONTHLY PAYMENT rounded to the nearest dollar figure"
9900 PAUSE 0: CLS
9920 PRINT "FINISHED? Y/N"
9930 PAUSE 0: IF INKEY$="N" OR INKEY$="n" THEN CLS : GO TO 9991
9940 IF INKEY$="Y" OR INKEY$="y" THEN GO TO 9993
9991 GO TO 5
9993 RANDOMIZE USR 100: NEW
9999 RANDOMIZE USR 100: SAVE "AMOR.B1" LINE 5

Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.