mirror of
https://github.com/rfivet/BCG101.git
synced 2024-11-15 16:56:04 -05:00
53 lines
1.8 KiB
QBasic
53 lines
1.8 KiB
QBasic
5 REM *** SYNONM CONVERTED TO RSTS/E BASIC-PLUS BY DAVE AHL, DIGITAL
|
|
10 DIM R$(5),W$(10),L(30),R(30)
|
|
20 R$(1)="RIGHT":R$(2)="CORRECT":R$(3)="FINE":R$(4)="GOOD!":R$(5)="CHECK"
|
|
70 RANDOMIZE:C=0:PRINT:PRINT "SYNONYMS":PRINT
|
|
90 PRINT "A SYNONYM OF A WORD MEANS ANOTHER WORD IN THE ENGLISH"
|
|
100 PRINT "LANGUAGE WHICH HAS THE SAME OR VERY NEARLY THE SAME"
|
|
110 PRINT "MEANING.":PRINT
|
|
130 PRINT "I CHOOSE A WORD -- YOU TYPE A SYNONYM."
|
|
140 PRINT "IF YOU CAN'T THINK OF A SYNONYM, TYPE THE WORD 'HELP'"
|
|
145 PRINT "AND I WILL TELL YOU A SYNONYM.":PRINT
|
|
150 RESTORE:C=C+1:READ N
|
|
160 IF C>N THEN 420
|
|
170 N1=INT(RND*N+1)
|
|
174 IF R(N1)=1 THEN 170
|
|
176 R(N1)=1
|
|
180 FOR I=1 TO N1
|
|
190 READ N2
|
|
200 FOR J=1 TO N2
|
|
210 READ W$(J)
|
|
220 NEXT J
|
|
230 NEXT I
|
|
232 L(J)=J FOR J=1 TO N2
|
|
235 L(0)=N2:G=1:PRINT
|
|
237 L(G)=L(L(0)):L(0)=N2-1:PRINT
|
|
240 PRINT " WHAT IS A SYNONYM OF "W$(G);:INPUT A$
|
|
250 IF A$="HELP" THEN 340
|
|
260 FOR J=1 TO N2
|
|
270 IF G=J THEN 290
|
|
280 IF A$=W$(J) THEN 320
|
|
290 NEXT J
|
|
300 PRINT " TRY AGAIN."
|
|
310 GOTO 240
|
|
320 PRINT R$(INT(RND*5+1))
|
|
330 GOTO 150
|
|
340 G1=INT(RND*L(0)+1)
|
|
360 PRINT "**** A SYNONYM OF "W$(G)" IS "W$(L(G1))"."
|
|
365 PRINT
|
|
370 L(G1)=L(L(0)):L(0)=L(0)-1
|
|
390 GOTO 240
|
|
420 PRINT:PRINT "SYNONYM DRILL COMPLETED.":STOP
|
|
500 DATA 10
|
|
510 DATA 5,"FIRST","START","BEGINNING","ONSET","INITIAL"
|
|
520 DATA 5,"SIMILAR","ALIKE","SAME","LIKE","RESEMBLING"
|
|
530 DATA 5,"MODEL","PATTERN","PROTOTYPE","STANDARD","CRITERION"
|
|
540 DATA 5,"SMALL","INSIGNIFICANT","LITTLE","TINY","MINUTE"
|
|
550 DATA 6,"STOP","HALT","STAY","ARREST","CHECK","STANDSTILL"
|
|
560 DATA 6,"HOUSE","DWELLING","RESIDENCE","DOMICILE","LODGING","HABITATION"
|
|
570 DATA 7,"PIT","HOLE","HOLLOW","WELL","GULF","CHASM","ABYSS"
|
|
580 DATA 7,"PUSH","SHOVE","THRUST","PROD","POKE","BUTT","PRESS"
|
|
590 DATA 6,"RED","ROUGE","SCARLET","CRIMSON","FLAME","RUBY"
|
|
600 DATA 7,"PAIN","SUFFERING","HURT","MISERY","DISTRESS","ACHE","DISCOMFORT"
|
|
999 END
|