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.
 
 
 
 
 
 

51 lines
2.4 KiB

  1. 1 REM NCFANAL
  2. 5 CLEAR 1000
  3. 10 CLS:PRINT TAB(5); "NET CASH FLOW ANALYSIS":PRINT
  4. 20 PRINT "WHEN INVESTING IN A NEW PROJECT A FIRM MUST TAKE INTO
  5. 25 PRINT "ACCOUNT THE CASH FLOWS GENERATED BY THE PROJECT, BOTH POSITIVE
  6. 30 PRINT "AND NEGATIVE. IN THIS PROGRAM WE ASSUME THAT AN ITEM IS
  7. 35 PRINT "PURCHASED FOR A FIXED AMOUNT, TO BE DEPRECIATED OVER ITS
  8. 40 PRINT "USEFUL LIFE VIA THE STRAIGHT-LINE METHOD. WE ESTIMATE CASH
  9. 45 PRINT "INFLOWS AND OUTFLOWS OVER THE LIFE OF THE PROJECT. THE
  10. 50 PRINT "PROGRAM WILL THEN PRINT A CASH FLOW TABLE"
  11. 90 INPUT "PRESS ENTER TO BEGIN";Z9$
  12. 95 DIM CI(100),CO(100)
  13. 100 CLS
  14. 110 INPUT "INPUT CASH COST OF THE PROJECT ";CP
  15. 115 INPUT "INPUT DEPRECIABLE COST OF THE PROJECT ";CD
  16. 120 INPUT "INPUT USEFUL LIFE OF PROJECT IN YEARS ";UL
  17. 130 INPUT "SALVAGE VALUE AT END OF USEFUL LIFE ";SV
  18. 135 AD=(CD-SV)/UL:REM ANNUAL DEPRECIATION
  19. 140 INPUT "INPUT CORPORATE INCOME TAX RATE(%) ";TX:TX=TX/100
  20. 200 CLS
  21. 210 FOR I=1 TO UL
  22. 220 PRINT "CASH FLOWS FOR YEAR ";I;" NOT INCLUDING INCOME TAXES"
  23. 230 INPUT " CASH INFLOWS = ";CI(I)
  24. 240 INPUT " CASH OUTFLOWS = ";CO(I)
  25. 250 PRINT
  26. 260 NEXT I
  27. 300 REM PRINTOUT AND COMPUTATUION
  28. 310 F$(1)="YR CASH CASH DEPREC- NET TAXES NET CASH"
  29. 320 F$(2)=" INFLOW OUTFLOW IATION INCOME FLOW "
  30. 330 F$(3)="## ####### ####### ####### ####### ######## #######"
  31. 350 INPUT "DO YOU WANT LINE PRINTER OUTPUT(Y/N)";Z2$
  32. 360 IF Z2$<>"Y" AND Z2$<>"N" THEN GOSUB 10000:GOTO 350
  33. 400 CLS
  34. 410 PRINT F$(1):PRINT F$(2):IF Z2$="Y" THEN LPRINT F$(1):LPRINT F$(2):LPRINT " "
  35. 420 PRINT USING F$(3);0,0,CP,0,0,0,-CP
  36. 425 IF Z2$="Y" THEN LPRINT USING F$(3);0,0,CP,0,0,0,-CP
  37. 430 FOR I=1 TO UL
  38. 435 NI=CI(I)-CO(I)-AD:NCF=NI+AD-NI*TX
  39. 437 IF I=UL THEN NCF=NCF+SV
  40. 440 PRINT USING F$(3);I,CI(I),CO(I),AD,NI,NI*TX,NCF
  41. 450 IF Z2$="Y" THEN LPRINT USING F$(3);I,CI(I),CO(I),AD,NI,NI*TX,NCF
  42. 460 IF I/12=INT(I/12) THEN PRINT :GOSUB 10100:CLS:PRINT F$(1):PRINT F$(2)
  43. 470 NEXT I
  44. 480 PRINT :PRINT "YEAR";UL;"CASH FLOW INCLUDES SALVAGE VALUE SALE OF $";SV
  45. 490 IF Z2$="Y" THEN LPRINT " ":LPRINT "YEAR";UL;"CASH FLOW INCLUDES SALVAGE VALUE SALE OF $";SV
  46. 500 PRINT :INPUT "PRESS ENTER FOR MORE ";Z9$
  47. 505 IF Z9$ = "-1" THEN END
  48. 510 GOTO 100
  49. 10000 PRINT "INPUT ERROR! TRY AGAIN!":FOR JJ=1 TO 300:NEXT :RETURN
  50. 10100 INPUT "PRESS ENTER TO CONTINUE";Z9$:RETURN