40 J$ = "There was a disk error (#" + STR$( PEEK(222)) +").":J$ = J$: VTAB 8: GOSUB 62:J$ = "Check to make sure the disk is in": VTAB 10: GOSUB 62:J$ = "the drive and the drive door is": VTAB 11: GOSUB 62:J$ = "closed. Press Escape to exit the": VTAB 12: GOSUB 62:J$ = "program or press the spacebar": VTAB 13: GOSUB 62
45 PRINT CHR$(20); CHR$(12): POKE 33,40: POKE 35,24:K = 0: FOR A = 1 TO E:K = K +G(A): NEXT :I = 0: ON NOT (K +J) GOTO 53:J$ = "Quiz Summary": VTAB 1: GOSUB 62: HCOLOR= W: HPLOT 0,11 TO 279,11: HPLOT 0,182 TO 279,182: HTAB 1: VTAB 4: PRINT " You answered "K +J" of "E" questions.": IF J = 1 THEN PRINT " One of the answers was correct."
46 IF J >1 THEN PRINT " ";J;" of the answers were correct."
47 IF J = 0 THEN PRINT
48 PRINT : PRINT : PRINT :J$ = "The Percentage Correct": GOSUB 62: PRINT : PRINT : PRINT " of Questions Tried = "; INT(((J/(K +J)) +.005) *100);"%": PRINT " of Total Questions = " INT(((J/E) +.005) *100);"%": PRINT : PRINT : HCOLOR= X:S = 71:T = 20:U = 126:V = 239: GOSUB 64: ON NOT (J <E AND NOT H AND L) GOTO 52: PRINT " Retry the ones you missed? (Y/N)": GOSUB 80
49 ON NOT (K$ = "Y") GOTO 50:R = 1:H = 1: GOTO 51
50 R = 0
51 GOTO 53
52 R = 0:J$ = "Congratulations!": GOSUB 62: PRINT : PRINT :J$ = "Press a key to continue.": GOSUB 62: POKE 49168,0: CALL (64780)
53 RETURN
54 PRINT "<CTRL-0x04>-title.rpk": HTAB 7: VTAB 16: PRINT "Press I for instructions,";:J$ = " ESC to quit or any other": VTAB 17: GOSUB 62:J$ = " key to start the test.": VTAB 18: GOSUB 62: RETURN
55 PRINT CHR$(20); CHR$(12): POKE 33,40: POKE 35,24: HCOLOR= X:J$ = "INSTRUCTIONS": VTAB 1: GOSUB 62: HPLOT 0,11 TO 279,11:J$ = "Press the letter that corresponds": VTAB 5: GOSUB 62:J$ = "to your best guess. You cannot": VTAB 6: GOSUB 62:J$ = "skip questions. If you miss any": VTAB 7: GOSUB 62:J$ = "questions you'll be given the": VTAB 8: GOSUB 62
56 J$ = "chance to try again at the end.": VTAB 9: GOSUB 62:J$ = "Press any key.": VTAB 17: GOSUB 62: POKE 49168,0: CALL (64780): IF PEEK(49152) = 27 THEN RETURN
57 PRINT CHR$(20); CHR$(12): POKE 33,40: POKE 35,24:J$ = "SCORING": VTAB 1: GOSUB 62: HPLOT 0,11 TO 279,11:J$ = "You will be scored when you've": VTAB 7: GOSUB 62:J$ = "completed every question and have": VTAB 8: GOSUB 62:J$ = "decided whether or not to try any": VTAB 9: GOSUB 62:J$ = "missed questions a second time.": VTAB 10: GOSUB 62
58 J$ = "Press any key.": VTAB 17: GOSUB 62: POKE 49168,0: CALL (64780): IF PEEK(49152) = 27 THEN RETURN
59 PRINT CHR$(20); CHR$(12): POKE 33,40: POKE 35,24:J$ = "CHEATING": VTAB 1: GOSUB 62: HPLOT 0,11 TO 279,11:J$ = "You can cheat while answering the": VTAB 4: GOSUB 62:J$ = "questions by pressing Control-A.": VTAB 5: GOSUB 62:J$ = "This will show you the correct": VTAB 6: GOSUB 62:J$ = "answer. Try to answer all the": VTAB 7: GOSUB 62
60 J$ = "questions before looking at the": VTAB 8: GOSUB 62:J$ = "answers.": VTAB 9: GOSUB 62:J$ = "Looking at an answer will forfeit": VTAB 12: GOSUB 62:J$ = "points for that question, so only": VTAB 13: GOSUB 62:J$ = "peek as a last resort.": VTAB 14: GOSUB 62:J$ = "Press any key.": VTAB 17: GOSUB 62: POKE 49168,0: CALL (64780): RETURN
64 HPLOT T,S TO V,S TO V,U TO T,U TO T,S: HPLOT T +1,S TO T +1,U: HPLOT V -1,S TO V -1,U: RETURN
65 HTAB Y: VTAB Z: FOR A = 1 TO AA: PRINT I$(A): NEXT : RETURN
66 HTAB Y: VTAB Z: FOR A = 1 TO 10: IF LEN(I$(A)) THEN PRINT I$(A): GOTO 68
67 A = 10
68 NEXT : RETURN
69 HTAB Y: VTAB Z: FOR A = 1 TO AA:J$ = I$(A): GOSUB 62: PRINT : NEXT : RETURN
70 FOR ZQ = 0 TO 127:ZQ = RND(1):ZQ = PEEK(49152): NEXT : POKE 49168,0:J$ = CHR$(ZQ -129): IF J$ = CHR$(1) THEN GOSUB 84: GOTO 70
71 IF J$ = CHR$(19) THEN GOSUB 89: GOTO 70
72 AB = ( ASC(J$) -( ASC(J$) >96 AND ASC(J$) <123) *32): IF (AB > = 0 AND AB <128) THEN J$ = CHR$(AB)
73 K$ = J$: RETURN
74 AC = 0:AD = 0
75 GOSUB 70: IF J$ >"@" AND J$ <"F" THEN AD = 1
76 IF J$ = CHR$(27) THEN AD = 1
77 IF NOT (AD) THEN 75
78 K$ = J$: IF AC AND K$ < >B$ THEN K$ = " "
79 RETURN
80 AD = 0
81 GOSUB 70: IF J$ = "Y" OR J$ = "N" THEN AD = 1
82 IF NOT (AD) THEN 81
83 K$ = J$: RETURN
84 IF I = 0 THEN RETURN
85 AC = 1: HOME : PRINT CHR$(4)"pr#0": FOR A = 1 TO 40: PRINT "=";: NEXT : HTAB 10: VTAB 2: PRINT "ANSWER - NO PEEKING!";: PRINT : FOR A = 1 TO 40: PRINT "=";: NEXT : PRINT : PRINT : PRINT "THE CORRECT ANSWER IS:": PRINT : PRINT :O$ = N$:J$ = "": FOR A = 1 TO LEN(O$):Q$ = MID$ (O$,A,1):Q$ = CHR$( ASC(Q$) -32 *(Q$ >"`" AND Q$ <"{")):J$ = J$ +Q$: NEXT :O$ = J$: GOSUB 104: HTAB 8: VTAB 22: PRINT "PRESS ANY KEY TO CONTINUE"
96 B = 40:A = 200: POKE 768,B: POKE 769,A: FOR A = 1 TO 15: CALL 770: NEXT : RETURN
97 IF D = 0 THEN RETURN
98 B = 200:A = 40: POKE 768,B: POKE 769,A: FOR A = 1 TO 100: CALL 770: NEXT : RETURN : DATA 173,0,3,174,1,3,8,120,72,160,16,58,208,5,173,48: DATA 192,104,72,136,208,245,160,16,202,208,240,104,40,96: DATA 32,190,222,32,227,223,32,108,221,133,133,132: DATA 134,32,44,213,160,1,136,152,160,2,162,141,32
99 DATA 233,227,32,154,218,96,
100 FOR A = 1 TO 10:B = INT( RND(16) *4) +1:AE = INT( RND(17) *4) +1:M$ = M$(B):M$(B) = M$(AE):M$(AE) = M$: NEXT : RETURN
101 POKE -16302,0: GOSUB 800: FOR A = 1 TO 30: READ B: POKE 769 +A,B: NEXT : FOR A = 0 TO 30: READ B: POKE 800 +A,B: NEXT : RETURN
104 Q = 1:R$ = O$: IF LEN(R$) < = N THEN PRINT O$: RETURN
105 AF = N +1: GOSUB 110:Q = Q +1: PRINT O$
106 ON NOT ( LEN(R$) >N) GOTO 108:Q = Q +1:AF = N +1: GOSUB 110: IF P THEN PRINT " ";
107 PRINT O$: GOTO 106
108 O$ = R$: IF P THEN PRINT " ";
109 PRINT O$: RETURN
110 AG = AF
111 S$ = MID$ (R$,AG,1):AG = AG -1: IF NOT (S$ = " " OR AG = 0) THEN 111
112 O$ = LEFT$(R$,AG): IF LEN(R$) = AG THEN RETURN