ChipMaster's bwBASIC This also includes history going back to v2.10. *WARN* some binary files might have been corrupted by CRLF.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

61 lines
1.8 KiB

  1. 5 REM 12/16/2919 MINOR CORRECTIONS Ken intrate
  2. 10 K=0:T0=0:T1=0
  3. 20 INPUT "INTEREST RATE (%) ",I2
  4. 30 J=I2/1200
  5. 40 INPUT "TERM IN MONTHS " ,N
  6. 50 D=1-(1+J)^(-N)
  7. 60 R=1000*J/D
  8. 70 P=9.9995E-03
  9. 80 F=R+P
  10. 90 F=(INT(F*100)/100)
  11. 100 PRINT "RATE PER $1000 = $",
  12. 110 PRINT USING "#####.##";F ' %7F2
  13. 120 INPUT "AMOUNT OF MORTGAGE ",Z
  14. 130 INPUT "PAYMENT IF KNOWN, ELSE 0 ",B
  15. 140 IF B>0 THEN 190
  16. 150 B=(Z/1000)*F
  17. 160 INPUT "DO YOU WANT PAYMENT IN EVEN DOLLARS ",Y$
  18. 170 IF Y$="N" THEN 190 ' IF Y$(1,1) ="N" THEN 190
  19. 175 IF Y$="n" THEN 190 ' IF Y$(1,1) ="n" THEN 190
  20. 180 B=INT (B+.99)
  21. 190 PRINT "MONTHLY PAYMENT = $",
  22. 200 PRINT USING "#####.##";B ' %7F2
  23. 210 INPUT "DO YOU WANT TO AMORTIZE THIS LOAN ",Y$
  24. 220 IF Y$="N" THEN 10 ' IF Y$(1,1)="N" THEN 10
  25. 225 IF Y$="n" THEN 10 ' IF Y$(1,1)="n" THEN 10
  26. 230 INPUT "DO YOU WANT DETAIL DISPLAYED ",Y$
  27. 240 IF Y$="N" THEN S=1 ELSE S=0 ' IF Y$(1,1) ="N" THEN S=1 ELSE S=0
  28. 245 IF Y$="n" THEN S=1 ELSE S=0 ' IF Y$(1,1) ="n" THEN S=1 ELSE S=0
  29. 250 IF S=1 THEN 280
  30. 260 INPUT "DISPLAY INTERVAL ",D1
  31. 270 INPUT "DISPLAY START PERIOD ",D2
  32. 280 PRINT "PMT# BALANCE INT PRIN RED PER INT TOT INT"
  33. 290 I1=J*Z
  34. 300 I1=I1+5E-03:I1=(INT(I1*100)/100)
  35. 310 T0=T0+I1:T1=T1+I1
  36. 320 P1=Z
  37. 330 Q=B-I1
  38. 340 Z=Z-Q
  39. 350 X=P1:Y=Q:X=X-Y
  40. 360 IF X>0 THEN 380
  41. 370 Z=0:B=P1+I1:Q=B-I1
  42. 380 K=K+1
  43. 390 IF S=1 THEN 460
  44. 400 IF K<>D1+D2 THEN 420
  45. 410 PRINT USING "###";K, ' %3I
  46. 420 IF K<D1 THEN 460
  47. 430 IF D1+D2<> K THEN 460 ELSE D2=D2+D1
  48. 440 PRINT USING "#######.##";Z,I1,Q,T0,T1 ' %9F2
  49. 450 T0=0
  50. 460 IF Z>0 THEN 290
  51. 470 PRINT:PRINT "FINAL TOTALS":PRINT
  52. 480 PRINT USING "###";K, ' %3I
  53. 490 PRINT USING "#######.##";Z,I1,Q,T0,T1 ' %9F2
  54. 500 PRINT "LAST PAYMENT = $",: PRINT USING "#####.##";B ' %7F2
  55. 510 STOP
  56. 600 REM ---------------------------------------------------
  57. 610 REM Changed %... to PRINT USING "#"
  58. 620 REM Changed Y$(1,1) to Y$
  59. 699 END