Job Review

Author(s): Mel Routt
Publication: Syntax
Pub Details: Syntax/Syntax ZX80 v2 n12 (Volume 2, Issue 12)
Date: December 1981
Pages: 6-8

This 8K/16K program allows you to input job cost information and save it to tape. Then you can review it any time, compare it against new data, and update it if necessary. To review data on tape, type GOTO 265 instead of RUN after loading. You can see who reviewed the data, when, and how many items were originally considered.

The table of original control data saved will be displayed in a data listing which includes customer code, part code or number, quantity made, estimated hours, estimated material cost, actual hours and actual materials cost.

This information is computed against overhead cost factors per hour, production quantities, and other factors. The results are displayed in a comparisons table, giving the customer and part codes, estimated dollar cost per item and per lot, and actual dollar cost per item and per lot. At the end of each line a flag appears if the job was underestimated (or lost money).

In the control data input mode, the ZX80 asks how many items you want to review. This sets up the length of the loops (up to 10 cycles) for both the data listing and comparison tables. To exit while entering data, type XXXX for the customer code. This terminates the loop and resets the value for later loops.

The only aggravation is the screen display’s 32-column limit. If the input or computed results are large, your data tables will be crowded or overflow to the next line. If error code 5 comes up, just hit CONT (NL) to see more displays. One reason I kept the number of items for review to 10 was to try to keep the displays to single screens.

The program ends by allowing you to go back to start if you have new data and don’t want to save what you entered.

Any underlined PRINT statement means inverse graphics. Hit shift 9, then type the characters. Press shift 9 again, then NL to enter.

Mel’s variables list and documentation are too long to print here. For a copy, send us a SASE.–AZ

   1 REM "JOB REVIEW"
2 REM BY MEL ROUTT
3 REM SEP 17, 1981
10 CLS
15 DIM R$(1,12)
20 DIM D$(1,8)
25 DIM N (1)
30 GOSUB 1000
35 INPUT R$(1)
40 GOSUB 1025
45 GOSUB 1040
50 INPUT D$(1)
55 GOSUB 1050
60 GOSUB 1065
65 INPUT N
70 IF N>10 THEN LET N=10
75 LET N(1)=N
80 GOSUB 1075
85 PRINT
90 PRINT
95 PRINT "ENTER HRS TO NEAREST
TENTH. ENTER $ TO NEAREST $
."
100 PRINT
105 PRINT "TO END DATA ENTRY -
ENTER ""XXXX"" IN ""CUST C
ODE""."
110 PRINT
115 PRINT "TO BEGIN DATA ENTRY
PRESS N/L."
120 DIM C$(N,4)
125 DIM P$(N,4)
130 DIM Q(N)
135 DIM A(N)
140 DIM B(N)
145 DIM C(N)
150 DIM D(N)
155 GOSUB 2000
160 GOSUB 1100
165 FOR I=1 TO N
170 LET I1=I
175 INPUT C$(I)
180 IF C$(I)="XXXX" THEN GOTO 2
55
185 GOSUB 1150
190 INPUT P$(I)
195 GOSUB 1160
200 INPUT Q(I)
205 GOSUB 1170
210 INPUT A(I)
215 GOSUB 1180
220 INPUT B(I)
225 GOSUB 1190
230 INPUT C(I)
235 GOSUB 1200
240 INPUT D(I)
245 GOSUB 1210
250 NEXT I
251 GOTO 260
255 IF C$(I)="XXXX" THEN LET I1
=I1-1
260 GOTO 360
265 GOSUB 1000
270 GOSUB 1025
275 GOSUB 1040
280 GOSUB 1050
285 GOSUB 1065
290 GOSUB 1075
295 PRINT
300 PRINT "TO VIEW OLD DATA - P
RESS N/L."
305 GOSUB 2000
310 GOSUB 1100
315 FOR I=1 TO I1
320 GOSUB 1150
325 GOSUB 1160
330 GOSUB 1170
335 GOSUB 1180
340 GOSUB 1190
345 GOSUB 1200
350 GOSUB 1210
355 NEXT I
360 PRINT
365 PRINT "TO VIEW COMPARISONS
PRESS N/L."
370 GOSUB 2000
375 PRINT
380 PRINT " COMPARISONS:"
385 PRINT
390 LET M=18
395 PRINT "--CODES--";TAB 10;"Q
TY";TAB 14;"--EST$--";TAB 24;"--
ACT$--"
400 PRINT "CUST";TAB 5;"PART";T
AB 10;"PCS";TAB 14;"EA";TAB 19;"
LOT";TAB 24;"EA";TAB 29;"LOT"
405 GOSUB 1125
410 FOR I=1 TO I1
415 GOSUB 1150
420 PRINT P$(I);TAB 10;
425 PRINT Q(I);TAB 14;
430 LET E1=((A(I)*M)+B(I))/Q(I)
431 LET X=E1
432 GOSUB 3000
433 LET E1=X
435 LET E2=Q(I)*E1
440 LET A1=((C(I)*M)+D(I))/Q(I)
441 LET X=A1
442 GOSUB 3000
443 LET A1=X
445 LET A2=Q(I)*A1
465 PRINT E1;TAB 19;E2;TAB 24;;A
1;TAB 29;A2;
470 IF A2<=E2 THEN PRINT " "
475 IF A2>E2 THEN PRINT "-"
480 NEXT I
485 PRINT
490 PRINT "IF YOU WISH TO ENTER
NEW DATA THEN TYPE ""YES"" AN
D N/L."
495 INPUT X$
500 IF X$="YES" THEN GOTO 10
505 PRINT
510 PRINT " SAVE DATA ON TAPE."
515 STOP
1000 PRINT
1005 PRINT " JOB REVIEW:"
1010 PRINT
1015 PRINT "REVIEWED BY: ";
1020 RETURN
1025 PRINT R$(1)
1030 PRINT
1035 RETURN
1040 PRINT "DATE OF REVIEW: ";
1045 RETURN
1050 PRINT D$(1)
1055 PRINT
1060 RETURN
1065 PRINT "NO. ITEMS REVIEWED;
MAX. 10: ";
1070 RETURN
1075 PRINT N(1)
1080 RETURN
1100 PRINT
1105 PRINT " DATA LISTING:"
1110 PRINT
1115 PRINT "--CODES--";TAB 11;"Q
TY";TAB 16;"--EST--";TAB 25;"--A
CT--"
1120 PRINT "CUST";TAB 5;"PART";T
AB 11;"PCS";TAB 16;"HRS";TAB 20;
"MT$";TAB 25;"HRS";TAB 29;"MT$"
1125 FOR I=1 TO 32
1130 PRINT "-";
1135 NEXT I
1140 PRINT
1145 RETURN
1150 PRINT C$(I);TAB 5;
1155 RETURN
1160 PRINT P$(I);TAB 11;
1165 RETURN
1170 PRINT Q(1);TAB 16;
1175 RETURN
1180 PRINT A(I);TAB 20;
1185 RETURN
1190 PRINT B(I);TAB 25;
1195 RETURN
1200 PRINT C(I);TAB 29;
1205 RETURN
1210 PRINT D(I)
1215 RETURN
2000 INPUT Z$
2005 IF Z$="" THEN CLS
2010 RETURN
3000 LET X=(INT (100*(X+.005)))/
100
3005 RETURN
3010 REM
3015 REM - TO VIEW OLD DATA
3020 REM - DO NOT TYPE "RUN"
3025 REM - USE "GOTO 265, N/L"
3030 REM - AFTER TAPE LOADING
Syntactic Sum: 40759, 8K

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