Salary Scheduling Cost Computation

Developer(s): Robert DeMunbrun
Date: 1982
Type: Program
Platform(s): ZX81, TS 1000
Tags: Business

Written by a school administrator for salary negotiations. Enter the school’s name, the starting salary and yearly increment for the bachelor’s, master’s and master’s-plus columns, the number of years on each column, and then the number of teachers on each step. The program prints the cost of each step and the total for the whole schedule. Answer YES to ANOTHER COLUMN? to add the master’s-plus column.

The prompts and results take more than one screen, so the ZX81 stops with report 5 when the screen is full; enter CONT to go on. It needs 16K.

Published in Syntax February 1982 (Salary Scheduling Cost Computation).

Related Articles

This 8K/16K program computes salary schedules for two or three classes of teachers (or other workers).

Image Gallery

Source Code

   1 PRINT TAB 8;"EQUAL INCREMENT"
   3 PRINT TAB 8;"SALARY SCHEDULING"
   6 PRINT TAB 7;"COST COMPUTATION"
   9 PRINT TAB 15;"BY"
  12 PRINT TAB 7;"R.M. DEMUNBRUN"
  15 PRINT
  18 PRINT "SCHOOL CORP NAME?"
  19 INPUT A$
  20 PRINT A$
  21 PRINT
  24 PRINT TAB 6;"1980 81 SCHOOL YEAR"
  27 PRINT
  36 PRINT
  39 PRINT
  41 PRINT "BEG BACH SALARY?"
  43 INPUT B
  45 PRINT "BACH INCREMENT?"
  47 INPUT I1
  49 PRINT "BEG MAST SALARY?"
  51 INPUT M
  53 PRINT "MAST INCREMENT?"
  55 INPUT I2
  57 PRINT "MAST+ SALARY?"
  59 INPUT MA
  61 PRINT "MAST+ INCREMENT?"
  63 INPUT I3
  64 PRINT "YRS BACH COLUMN?"
  65 INPUT BY
  66 PRINT "YRS MAST COLUMN?"
  67 INPUT MY
  68 PRINT "YRS MAST+ COLUMN?"
  69 INPUT MAY
  70 LET N=-1
  72 PRINT TAB 1;"DEGREE";TAB 17;"YEARS"
  73 PRINT TAB 1;"TEACHERS";TAB 17;"INCREMENTS"
  74 PRINT
  75 LET TE1=0
  95 LET IN1=0
 100 LET N=N+1
 105 IF N>BY THEN GOTO 190
 110 PRINT TAB 1;"BACH";TAB 17;N
 120 INPUT NO
 130 LET TE1=TE1+NO
 140 LET IN=N*NO
 150 LET IN1=IN1+IN
 170 PRINT TAB 1;NO;TAB 17;IN
 180 PRINT
 185 GOTO 100
 190 LET C=B*TE1
 200 LET CIN=IN1*I1
 210 LET COST1=C+CIN
 220 PRINT TAB 1;"BACH COST";TAB 16;"$";TAB 17;COST1
 230 PRINT
 240 PRINT TAB 1;"NO. TEACH";TAB 17;TE1
 250 PRINT
 260 PRINT TAB 1;"NO. INCREMENTS";TAB 17;IN1
 280 PRINT
 290 LET N=-1
 300 LET TE2=0
 330 LET IN2=0
 340 LET N=N+1
 350 IF N>MY THEN GOTO 430
 360 PRINT TAB 1;"MAST";TAB 17;N
 370 INPUT NO
 380 LET TE2=TE2+NO
 390 LET IN=N*NO
 400 LET IN2=IN2+IN
 410 PRINT TAB 1;NO;TAB 17;IN
 420 PRINT
 425 GOTO 340
 430 LET C2=M*TE2
 440 LET CIN2=IN2*I2
 450 LET COST2=C2+CIN2
 460 PRINT TAB 1;"MAST COST";TAB 16;"$";TAB 17;COST2
 470 PRINT
 480 PRINT TAB 1;"NO. TEACH";TAB 17;TE2
 490 PRINT
 500 PRINT TAB 1;"NO. INCREMENTS";TAB 17;IN2
 510 PRINT
 520 PRINT "ANOTHER COLUMN? ""YES"" OR ""NO"""
 530 INPUT B$
 540 IF B$="YES" THEN GOTO 600
 550 LET TC1=COST1+COST2
 560 PRINT TAB 1;"SCHEDULE COST";TAB 16;"$";TAB 17;TC1
 580 LET TEA=TE1+TE2
 590 PRINT TAB 1;"NO. TEACHERS";TAB 17;TEA
 595 GOTO 900
 600 LET N=-1
 610 LET TE3=0
 640 LET IN3=0
 645 LET C=0
 650 LET N=N+1
 660 IF N>MAY THEN GOTO 740
 670 PRINT TAB 1;"MAST+";TAB 17;N
 680 INPUT NO
 690 LET TE3=TE3+NO
 700 LET IN=N*NO
 710 LET IN3=IN3+IN
 720 PRINT TAB 1;NO;TAB 17;IN
 730 PRINT
 735 GOTO 650
 740 LET C=MA*TE3
 750 LET CIN3=IN3*I3
 760 LET COST3=C+CIN3
 770 PRINT TAB 1;"MAST+ COST";TAB 16;"$";TAB 17;COST3
 780 PRINT
 790 PRINT TAB 1;"NO. TEACH";TAB 17;TE3
 800 PRINT
 810 PRINT TAB 1;"NO. INCREMENTS";TAB 17;IN3
 820 PRINT
 825 PRINT
 830 LET TEACH=TE1+TE2+TE3
 840 PRINT TAB 1;"TOT. TEACH";TAB 17;TEACH
 850 PRINT
 860 LET TC2=COST1+COST2+COST3
 870 PRINT TAB 1;"SCHEDULE COST";TAB 16;"$";TAB 17;TC2
 900 STOP

Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.