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.
 
 
 
 
 
 

27 lines
918 B

  1. 1 REM MODEBTPA
  2. 5 CLS
  3. 10 PRINT " LOAN DEBT PAYMENT"
  4. 20 PRINT
  5. 30 PRINT "THIS PROGRAM COMPUTES THE AMOUNT REQUIRED AS A
  6. 35 PRINT "MONTHLY PAYMENT TO PAY OFF A LOAN IN A GIVEN
  7. 40 PRINT "NUMBER OF PAYMENTS IF THE NOMINAL INTEREST RATE
  8. 45 PRINT "IS KNOWN.
  9. 50 PRINT
  10. 55 INPUT "PRESS ENTER WHEN READY TO BEGIN";Z9
  11. 100 CLS
  12. 110 INPUT "WHAT IS THE AMOUNT OF THE LOAN ";P
  13. 120 INPUT "HOW MANY PAYMENTS ARE NEEDED ";N
  14. 130 INPUT "WHAT IS THE NOMINAL INTEREST RATE(%)";I
  15. 140 I=I/1200 :REM MONTHLY INTEREST RATE
  16. 145 IF I=0 THEN DP=P/N: GOTO 160
  17. 150 DP=P*I*(1+I)[N/((1+I)[N-1)
  18. 160 PRINT
  19. 170 F$(1)=" MONTHLY PAYMENT EQUALS $$#####.##"
  20. 180 PRINT USING F$(1);DP
  21. 200 INPUT "INPUT 0 TO END,1 FOR NEW LOAN,2 FOR NEW INTEREST RATE";Z9
  22. 210 IF Z9=1 THEN GOTO 100
  23. 220 IF Z9=0 THEN END
  24. 225 IF Z9=2 THEN GOTO 130
  25. 230 PRINT "INPUT ERROR. TRY AGAIN":PRINT :GOTO 200