150 VLOC% = 2: FOR J = 1 TO ANUM%:ARES(J) = 0.0:VLOC% = VLOC% +1:NUMB = ARES(J): GOSUB 180: NEXT : RETURN
160 FOR J = 1 TO ANUM%:GSUM(J) = 0: NEXT : FOR J = 1 TO FACT%: FOR K = 1 TO ANUM%:GSUM(K) = GSUM(K) +PDES%(J) *GDES%(K,J): NEXT : NEXT :VLOC% = 2: FOR J = 1 TO ANUM%:ARES(J) = GSUM(J)/PSUM%:VLOC% = VLOC% +1:NUMB = ARES(J): GOSUB 180: NEXT : RETURN
170 REM * PRINT A REAL *******
180 A = INT(NUMB) + INT((NUMB - INT(NUMB)) *10 +0.5)/10:A% = 8: IF A = INT(NUMB) OR A -1 = INT(NUMB) THEN A% = 6
190 IF PAGE% = 0 THEN VTAB VLOC%: HTAB 2
200 PRINT TAB( A% - LEN( STR$(A)));A;
210 IF A% = 6 THEN PRINT ".0";
220 RETURN
230 REM * PRINT A NAME ***
240 HTAB 10: PRINT INPT$;
250 IF PAGE% < >0 THEN PRINT
260 RETURN
270 REM * CLEAR WINDOW ***
280 IF WNDW% <0 OR WNDW% >4 THEN RETURN
290 IF WNDW% = 0 THEN 390
300 ON WNDW% GOTO 310,330,350,370
310 VFIR% = 1:VBOT% = 24
320 GOTO 390
330 VFIR% = 1:VBOT% = 8
340 GOTO 390
350 VFIR% = 9:VBOT% = 20
360 GOTO 390
370 VFIR% = 21:VBOT% = 24
380 GOTO 390
390 VTAB VFIR%
400 POKE 34,VFIR% -1
410 POKE 35,VBOT%
420 HOME
430 RETURN
440 REM * DISP ALT. & RESULTS *
450 IF PAGE% < >0 THEN 480
460 WNDW% = 2: GOSUB 280
470 VLOC% = VFIR% +1
480 PRINT "ANALYSIS: ";NAME$
490 PRINT " RESULT ALTERNATIVE"
500 IF ANUM% <1 THEN RETURN
510 FOR J = 1 TO ANUM%
520 NUMB = ARES(J)
530 VLOC% = VLOC% +1
540 GOSUB 180
550 INPT$ = ADES$(J): GOSUB 240
560 NEXT
570 RETURN
580 REM * DISP FACTORS & PRIORITIES
590 IF PAGE% < >0 THEN 620
600 WNDW% = 3: GOSUB 280
610 VLOC% = VFIR% +1
620 PRINT
630 PRINT "PRIORITY FACTOR"
640 IF FACT% <1 THEN RETURN
650 A% = FCUR% +FLNG% -1: IF A% >FACT% THEN A% = FACT%
660 FOR J = FCUR% TO A%
670 NUMB = PDES%(J)
680 VLOC% = VLOC% +1
690 GOSUB 180
700 INPT$ = FDES$(J): GOSUB 240
710 NEXT
720 RETURN
730 REM * DISP FACS & GRADES *
740 WNDW% = 3: GOSUB 280
750 VLOC% = VFIR% +1
760 PRINT "ALTERNATIVE: ";ADES$(ACUR%)
770 PRINT " GRADE FACTOR"
780 IF FACT% <1 THEN RETURN
790 A% = FCUR% +FLNG% -1: IF A% >FACT% THEN A% = FACT%
800 FOR J = FCUR% TO A%
810 NUMB = GDES%(ACUR%,J)
820 VLOC% = VLOC% +1
830 GOSUB 180
840 INPT$ = FDES$(J): GOSUB 240
850 NEXT
860 RETURN
870 REM * DISP ALT. & GRADES *
880 IF PAGE% < >0 THEN 910
890 WNDW% = 3: GOSUB 280
900 VLOC% = VFIR% +1
910 PRINT "FACTOR: ";FDES$(FCUR%)
920 PRINT " GRADE ALTERNATIVE"
930 A% = ACUR% +ALNG% -1: IF A% >ANUM% THEN A% = ANUM%
940 FOR J = ACUR% TO A%
950 NUMB = GDES%(J,FCUR%)
960 VLOC% = VLOC% +1
970 GOSUB 180
980 INPT$ = ADES$(J): GOSUB 240
990 NEXT
1000 RETURN
1010 REM * GET A NAME ***
1020 POKE 51,191
1030 INPT$ = ""
1040 CALL -662
1050 FOR J = 512 TO 767
1060 A% = PEEK(J) -128
1070 IF A% = 13 THEN 1100
1080 INPT$ = INPT$ + CHR$(A%)
1090 NEXT
1100 IF LEN(INPT$) = 0 THEN INPT$ = ALPH$
1110 ALPH$ = LEFT$(INPT$,WLNG%)
1120 RETURN
1130 REM * SELECT FILE NAME ***
1140 WNDW% = 4: GOSUB 280
1150 PRINT A$
1160 PRINT "ENTER ANALYSIS NAME ('C' FOR CATALOG;": PRINT "'M' FOR MENU;"
1170 PRINT " <RETURN> FOR ";NAME$;")";" ";
1180 ALPH$ = NAME$
1190 GOSUB 1020
1200 IF ALPH$ < >"C" THEN 1250
1210 WNDW% = 1: GOSUB 280
1220 PRINT CD$;"CATALOG"
1230 GOSUB 5510
1240 GOTO 1140
1250 NAME$ = ALPH$: IF ALPH$ = "M" THEN CALL -10621: HOME : GOTO 6820