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.
 
 
 
 
 
 

46 lines
1.8 KiB

  1. 1 REM CVP
  2. 5 CLEAR 1000
  3. 10 CLS
  4. 20 PRINT TAB(10); "COST-VOLUME-PROFIT ANALYSIS":PRINT
  5. 30 PRINT"THE BUSINESSMAN IS VERY INTERESTED IN INCOME AFTER TAXES.
  6. 35 PRINT"SOMETIMES IT IS VERY DIFFICULT TO FIND THIS. VARIABLES WHICH
  7. 40 PRINT"MUST BE CONSIDERED INCLUDE VARIABLE COSTS PER UNIT,
  8. 45 PRINT"FIXED COSTS, TAX RATE,SALES DOLLARS, SALES PRICE PER UNIT.
  9. 50 PRINT"THE CURRENT PROGRAM ALSO USES RATIO OF VARIABLE COSTS PER UNIT
  10. 55 PRINT"TO SALES PRICE PER UNIT.
  11. 60 PRINT"WITH THE ABOVE THIS PROGRAM COMPUTES INCOME AFTER TAXES.
  12. 65 PRINT"AS AN OPTION IT CAN ALSO COMPUTE SALES DOLLARS NEEDED FOR
  13. 70 PRINT"A SPECIFIED INCOME.
  14. 90 PRINT
  15. 95 INPUT"PRESS ENTER TO BEGIN";Z9$
  16. 100 CLS
  17. 110 PRINT TAB(10); "MENU":PRINT
  18. 115 PRINT"0. QUIT
  19. 120 PRINT"1. DETERMINE SALES FOR SPECIFIED INCOME
  20. 130 PRINT"2. DETERMINE INCOME FOR SPECIFIED SALES
  21. 150 PRINT:INPUT"ENTER YOUR CHOICE";Z9
  22. 155 IF Z9 = 0 THEN END
  23. 160 ON Z9 GOSUB 200,300
  24. 170 GOTO 100
  25. 200 REM FIND SALES FOR SPECIFIED INCOME
  26. 210 CLS:GOSUB 500
  27. 220 INPUT"ENTER DESIRED INCOME LEVEL ";I
  28. 230 S = (1/(1-R))*(FC + I/(1-TX))
  29. 240 F$(1)="TO REACH INCOME LEVEL $$######.## YOU MUST SELL $$#######.## IN GOODS"
  30. 250 PRINT USING F$(1);I,S
  31. 290 PRINT:INPUT"PRESS ENTER TO CONTINUE";Z9$
  32. 295 RETURN
  33. 300 REM DETERMINE INCOME FOR SPECIFIED SALES
  34. 310 CLS:GOSUB 500
  35. 320 INPUT"ENTER SPECIFIED SALES LEVEL ";S
  36. 330 I = (1-TX)*(S*(1-R)-FC)
  37. 340 F$(1)="FOR SALES LEVEL $$#######.## YOUR INCOME WILL EQUAL $$#####.##"
  38. 350 PRINT USING F$(1);S,I
  39. 390 PRINT:INPUT"PRESS ENTER TO CONTINUE";Z9$
  40. 395 RETURN
  41. 500 REM INPUT SUBROUTINE
  42. 510 INPUT"ENTER TOTAL FIXED COSTS IN DOLLARS ";FC
  43. 520 INPUT"ENTER TAX RATE AS PER CENT ";TX:TX=TX/100
  44. 530 INPUT"ENTER RATIO OF VARIABLE COSTS PER UNIT TO SALES PRICE PER UNIT ";R
  45. 590 RETURN