home *** CD-ROM | disk | FTP | other *** search
- 0 clr
- 10 poke53280,6:poke646,1:goto30
- 20 printqtab(t1)ntab(t2)jtab(t3)b:return
- 30 c=12:t1=5:t2=16:t3=27
- 40 h=100:d=.5
- 50 input"[147]amount of loan";b:ifb=<0thenrun
- 60 input"annual interest rate";ai:i=ai/1200:ifi=<0thenrun
- 70 input"no. of years on loan";y:m=y*12:ifm=<0thenrun
- 80 p=(int(h*b*(i+i/((i+1)^m-1))+d))/h
- 90 print"monthly payment should be $";p
- 100 print"(press return to use above payment)"
- 110 input"actual payment";ap$:ifap$=""then130
- 120 p=val(ap$)
- 130 print"see monthly or yearly (m/y)?"
- 140 geta$:ifa$<>"y"thenifa$<>"m"then140
- 150 print"[147]"
- 160 print" (hold space bar to see entries)"
- 170 print" mo."tab(t1)" principal"tab(t2)" interest"tab(t3)" balance"
- 180 print" --------------------------------------
- 190 q[178]q[170]1
- 200 [161]b$:[139]b$[179][177]" "[167]200
- 210 j[178][181]((i[172]b)[172]h[170]d)[173]h
- 220 n[178][181]((p[171]j)[172]h[170]d)[173]h
- 230 b[178][181]((b[171]n)[172]h[170]d)[173]h
- 240 [139]b[179]0[167][128]
- 250 [139]a$[178]"m"[167][141]20:[137]270
- 260 [139][181](q[173]c)[178]q[173]c[167][141]20
- 270 [137]190
- 280 [153]" --------------------------------------
- 290 print" mo."tab(t1)" principal"tab(t2)" interest"tab(t3)" balance"
-