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.
 
 
 
 
 
 

43 lines
1.8 KiB

  1. 1 REM RULE78
  2. 5 CLS
  3. 10 CLEAR 1000
  4. 15 GOSUB 9000
  5. 20 PRINT TAB(15); "INTEREST VIS RULE OF 78'S":PRINT
  6. 25 PRINT "THIS PROGRAM WILL COMPUTE INTEREST CHARGE ON LOANS WHEN
  7. 30 PRINT "THIS INTEREST IS COMPUTED VIA THE RULE OF THE 78'S.
  8. 35 PRINT "NECESSARY INFORMATION FOR USER INPUT INCLUDES LENGTH OF THE
  9. 40 PRINT "LOAN, TOTAL INTEREST CONSUMER IS CHARGED ON LOAN OVER ITS
  10. 45 PRINT "TERM AND THE PAYMENT NUMBERS OF THE PERIODS IN QUESTION.
  11. 50 PRINT "OUTPUT SHOULD BE A SIMPLE TABLE SUMMARIZING INTEREST.
  12. 90 GOSUB 10100
  13. 100 CLS
  14. 105 INPUT "IS LINE PRINTER OUTPUT DESIRED(Y/N)";Z2$
  15. 107 IF Z2$<>"Y" AND Z2$<>"N" THEN GOSUB 10000:GOTO 105
  16. 110 INPUT "HOW MANY MONTHS(PAYMENTS) IS THE LOAN FOR ";M
  17. 120 INPUT "WHAT IS TOTAL INTEREST FOR TERM OF LOAN ";I
  18. 130 PRINT "WHICH IS 1ST MONTH FOR WHICH OUR INTEREST
  19. 140 INPUT " COMPUTATION IS DESIRED ";FM
  20. 150 INPUT " WHICH IS THE LAST MONTH DESIRED ";LM
  21. 200 PRINT "TOTAL INTEREST TO BE PAID = $";I
  22. 210 IF Z2$="Y" THEN LPRINT "TOTAL INTEREST TO BE PAID = $";I
  23. 215 PRINT F$(1):IF Z2$="Y" THEN LPRINT F$(1)
  24. 217 LL=0
  25. 220 FOR J=FM TO LM
  26. 230 IPX=I*(M-J+1)/(M*(M+1)/2):IL = I*(1-J/2*(2*M-J+1)/(M*(M+1)/2))
  27. 235 PRINT USING F$(2);J,IPX,IL
  28. 236 IF Z2$="Y" THEN LPRINT USING F$(2);J,IPX,IL
  29. 240 LL=LL+1:IF LL/12=INT(LL/12) THEN PRINT :GOSUB 10100:CLS:PRINT F$(1):PRINT
  30. 250 NEXT J
  31. 270 PRINT :INPUT "PRESS ENTER FOR MORE COMPUTATION";Z9$
  32. 280 IF Z9$ = "-1" THEN END
  33. 290 GOTO 100
  34. 9000 REM FORMATS
  35. 9010 F$(1)="PAYMENT # INTEREST INTEREST LEFT"
  36. 9020 F$(2)=" ### ######.## #######.##"
  37. 9099 RETURN
  38. 10000 PRINT "INPUT ERROR! TRY AGAIN! ":FOR JJ=1 TO 300:NEXT
  39. 10010 RETURN
  40. 10100 INPUT "PRESS ENTER TO CONTINUE";Z9$
  41. 10110 RETURN