home *** CD-ROM | disk | FTP | other *** search
Wrap
1 rem copyright 1991 - compute publications intl ltd - all rights reserved 10 dima$(99),g$(99),q(99),c(99),n(99),o(99),d$(99),ds(99),q$(99) 20 gosub 1940:gosub2560 30 pa$="":zr$="":print"[147]"chr$(158);:poke53272,23:printchr$(8) 40 gosub1960 50 getp$:ifp$=""then50 60 h=val(p$):if h<1 or h>9 then 50 70 on h goto 1420,110,110,1250,700,2160,2170,1540,1830 80 goto20 90 goto2130 100 if p$="y"then30 110 gosub1560:ifrq$<>""thenprint"[195][213][210][210][197][206][212][160][209][213][197][211][212][201][207][206]":print""rq$"[146]" 120 print"[197][206][212][197][210][160][210][201][196][196][204][197][160][209][213][197][211][212][201][207][206]":gosub1650 130 ifip$<>""andp$<>"_"thenrq$=ip$ 140 if p$="_"then30 150 if rq$=""then110 160 gosub1560:print"[195][213][210][210][197][206][212][160][209][213][197][211][212][201][207][206]":print""rq$"[146]":print 170 if ra$<>""thenprint"[195][213][210][210][197][206][212][160][193][206][211][215][197][210]":print""ra$"[146]" 180 print"[197][206][212][197][210][160][210][201][196][196][204][197][160][193][206][211][215][197][210]":gosub1650 190 if ip$<>"" and p$<>"_" then ra$=ip$:lr=len(ra$) 200 if p$="_" then 110 210 if ra$="" then 160 220 fori=1tolr:ifasc(mid$(ra$,i,1))=32thenprint"[206][207][160][211][208][193][195][197][211]" 230 ifasc(mid$(ra$,i,1))=32thenprint:goto180 240 a=asc(mid$(ra$,i,1)) 250 ifa>90 or a<64 thenprint"[204][207][215][197][210][195][193][211][197][160][204][197][212][212][197][210][211][160][207][206][204][217]":print:goto180 260 nexti 270 gosub1560:ifi$<>""thenprint"[195][213][210][210][197][206][212][160][201][206][211][212][210][213][195][212][201][207][206][211]":print""i$"[146]":print 280 print"[197][206][212][197][210][160][201][206][211][212][210][213][195][212][201][207][206][211]":gosub1650 290 ifip$<>"" and p$<>"_" then i$=ip$ 300 if p$="_" then 160 310 if i$="" then 270 320 lr = len(ra$) 330 gosub1560:printlr;" [196][201][211][212][210][193][195][212][207][210][211]":print 340 if n<>0 then print"[195][213][210][210][197][206][212][160][206][213][205][194][197][210][160][207][198][160][208][210][207][194][204][197][205][211]":print""n"[146]":print 350 print"[197][206][212][197][210][160][206][213][205][194][197][210][160][207][198][160][208][210][207][194][204][197][205][211] ":gosub1650 360 if ip$<>""andp$<>"_"thenn=val(ip$) 370 if p$="_"then 270 380 if n = 0 then 330 390 i=1 400 gosub1560:printn;" [209][213][197][211][212][201][207][206][211]":print 410 if q$(i)<>""thenprint"[195][213][210][210][197][206][212][160][209][213][197][211][212][201][207][206]"i:print""q$(i)"[146]":print 420 print"[197][206][212][197][210][160][209][213][197][211][212][201][207][206] ";i:gosub1650 430 ifip$<>""andp$<>"_"thenq$(i)=ip$ 440 if len(q$(i))>70 thenprint"[206][207][160][205][207][210][197][160][212][200][193][206] 70[160][195][200][193][210][193][195][212][197][210][211]" 450 if len(q$(i))>70 thenprint:goto420 460 if p$="_"then if i=1 then 330 470 if p$="_"then if i>1 then i=i-1:goto400 480 if a$(i)<>""thenprint"[195][213][210][210][197][206][212][160][210][201][199][200][212][160][193][206][211][215][197][210]":print""a$(i)"[146]" 490 print:print"[197][206][212][197][210][160][210][201][199][200][212][160][193][206][211][215][197][210]":gosub1650 500 ifip$<>""andp$<>"_"then a$(i)=ip$ 510 if p$="_" then 400 520 if a$(i)=""then480 530 if len(a$(i))>70 then print:print"[206][207][160][205][207][210][197][160][212][200][193][206] 70 [195][200][193][210][193][195][212][197][210][211]" 540 if len(a$(i))>70 then print:goto420 550 i=i+1:if i<=n then 400 560 i=1 570 gosub1560:printlen(ra$);" [196][201][211][212][210][193][195][212][207][210][211]":print 580 ifd$(i)<>""thenprint"[195][213][210][210][197][206][212][160][196][201][211][212][210][193][195][212][207][210]";i:print""d$(i)"[146]":print 590 print"[197][206][212][197][210] [196][201][211][212][210][193][195][212][207][210]";i:gosub1650 600 ifip$<>""andp$<>"_"thend$(i)=ip$ 610 if len(d$(i))>70 then print"[206][207][160][205][207][210][197][160][212][200][193][206][160]70[160][195][200][193][210][193][195][212][197][210][211]":print:goto590 620 if p$="_" then i=i-1:ifi>0 then goto570 630 ifi<=0 then i=n:goto400 640 if d$(i)=""then570 650 forj=1ton:a=val(a$(j)):ifd$(i)=a$(j) then670 660 nextj:goto680 670 print"[196][213][208][204][201][195][193][212][197][211] [193][206][160][193][206][211][215][197][210]":print:goto590 680 i=i+1:ifi<=len(ra$) then 570 690 goto30 700 gosub1580:input"[200][201][212][160][210][197][212][213][210][206][160][215][200][197][206][160][208][210][201][206][212][197][210][160][201][211][160][210][197][193][196][217]";zr$ 705 ifzr$="_"orra$=""then30 710 gosub 1580 720 input"[206][213][205][194][197][210][160][207][198][160][195][207][208][201][197][211]";n$:nc=val(n$):ifn$="" or n$="_" then 30 730 open1,4,7:forpg=1tonc 740 forrs=139to143:pokers,asc(ra$):nextrs:gosub1390 750 x=0:fori=1ton:ifx<len(q$(i))thenx=len(q$(i)) 760 nexti 770 it=x+9:cn=int(80/it):qc=cn 780 lq=0:zs=1:ze=76:ll=len(rq$):ifze>=llthenze=ll:goto820 790 ifmid$(rq$,ze,1)<>" "andze<>1thenze=ze-1:goto790 800 print#1,mid$(rq$,zs,ze-zs+1):zs=ze+1:ze=ze+76:lq=lq+1 805 ifze>=llthenze=ll:goto 820 810 goto790 820 n5=12+lq+li 830 print#1,right$(rq$,ll-zs+1):print#1:lq=lq+1 840 zs=1:ze=76:li=0:ll=len(i$):ifze>=llthenze=11:goto880 850 ifmid$(i$,ze,1)<>" "andze<>1thenze=ze-1:goto850 860 print#1,mid$(i$,zs,ze-zs+1):zs=ze+1:ze=ze+76 865 ifze>=llthenze=ll:li=li+1:goto880 870 goto850 880 print#1,right$(i$,ll-zs+1):li=li+1 890 t=cn:print#1:print#1:fori=1ton 900 print#1,str$(i);". ";q$(i);spc(it-len(q$(i))-len(str$(i))-2); 910 t=t-1:ift<=0thent=cn:print#1:print#1:n5=n5+2:gosub2130 920 nexti:print#1 930 fori=1ton 940 j=int(1+n*rnd(1)):ifc(j)=1then940 950 c(j)=1:o(i)=j:nexti:fori=1ton:c(i)=0:nexti 960 x=0:fori=1ton:ifx<len(a$(i))thenx=len(a$(i)) 970 nexti 980 nd=len(ra$):fori=1tond 990 fori=1tond:ifx<len(d$(i))thenx=len(d$(i)) 1000 :nexti:it=x+6:cn=int(80/it):fori=1tond 1010 j=int(1+nd*rnd(1)):ifc(j)=1then1010 1020 ds(i)=j:c(j)=1:nexti:fori=1tond:c(i)=0:nexti 1030 fori=1tolen(ra$):ifx<len(d$(i))thenx=len(d$(i)):nexti 1040 ifpa$="a"thenprint#1:print#1,ra$:print#1:i=1:j=1:t=cn 1050 ifpa$<>"a"thenprint#1:print#1:print#1:i=1:j=1:t=cn 1060 fq=len(ra$)/(n+len(ra$)) 1070 k=rnd(1) 1080 ifk>fq thenm=int(1+26*rnd(1)) 1090 lo=len(str$(o(i)))-3:ro=lo+2:z=o(i):z$=right$(str$(z),ro) 1095 ifpa$<>"a"then1130 1100 ifk>fq andi<=n and pa$="a" thenprint#1,z$;chr$(64+m);"=";a$(z); 1110 ifk>fq andi<=n thenprint#1,spc(it-(len(chr$(64+m))+3+len(a$(o(i))))-lo); 1120 ifk>fq andi<=n and pa$="a" then goto 1150 1130 ifk>fq andi<=n thenprint#1,chr$(64+m);" = ";a$(o(i)); 1140 ifk>fq andi<=n thenprint#1,spc(it-(len(chr$(64+m))+3+len(a$(o(i))))); 1150 ifk>fq andi<=n theni=i+1:t=t-1 1160 ift<=0thent=cn:print#1:print#1:n5=n5+2:gosub2130 1170 if k>fq then1220 1180 ifj<=len(ra$)thenprint#1,mid$(ra$,j,1);" = ";d$(ds(j)); 1190 ifj<=len(ra$)thenprint#1,spc(it-4-len(d$(ds(j)))); 1200 c=0 1210 ifj>len(ra$)then1220 1215 j=j+1:t=t-1:ift<=0 thent=cn:print#1:print#1:n5=n5+2:gosub90 1220 ifi>n and j>len(ra$)then gosub1600 1230 ifi>n and j>len(ra$)then nextpg:close1:goto30 1240 goto1070 1250 gosub1580:n$="":input"filename";n$:ifn$="_" or n$="" or ra$="" then 30 1260 n$=n$+",s,w":open5,8,5,n$:nd=len(ra$) 1270 open15,8,15:input#15,e,e$,c,d 1280 if e<>63 then goto1310 1290 printe$;",ok to overwrite (y/n)";:inputyn$ 1300 if left$(yn$,1)<>"y" then close5:close15:goto30 1310 close5:print#15,"s0:"+n$:close15:open5,8,5,n$ 1320 print#5,rq$:print#5,ra$:print#5,n:fori=1ton:print#5,q$(i):nexti 1330 fori=1ton:print#5,a$(i):nexti 1340 fori=1tond:print#5,d$(i):nexti:print#5,i$:printchr$(147); 1350 close5:i=n+1:j=len(ra$)+1:c=0:goto30 1360 ifc=3 thenrun 1370 ifc=4 thenclose1:printchr$(147);:end 1380 goto1070 1390 print#1,"[195]ross out the letters that go with the right answers." 1400 print#1,"[212]he letters left will spell the answer to the following." 1410 print#1:print#1:return 1420 gosub1580:n$="":input"[198]ilename";n$:ifn$="_"orn$=""then30 1430 n$="0:"+n$+",s,r":open5,8,5,n$ 1440 open15,8,15:input#15,e,e$,c,d 1450 if e<>62 then goto1470 1460 printe$;",hit <[210][197][212][213][210][206]>";:inputyn$:close5:close15:goto30 1470 close5:close15:open5,8,5,n$ 1480 gosub2100:rq$=zz$:gosub2100:ra$=zz$:gosub2100:n=val(zz$):fori=1ton 1490 gosub2100 1500 q$(i)=zz$:nexti 1510 fori=1ton:gosub2100:a$(i)=zz$:nexti:fori=1tolen(ra$):gosub2100:d$(i)=zz$ 1520 nexti 1530 gosub2100:i$=zz$:close5:goto30 1540 run 1550 qq$="[197][206][212][197][210][160][206][213][205][194][197][210][160][207][198][160][208][210][207][194][204][197][205][211]":return 1560 print"[147] [200][201][212][160]_[160][212][207][160][199][207][160][194][193][195][203] [160][160][160][160][160][160][160][160][160][160][146]" 1570 return 1580 print"[147] [197][206][212][197][210][160]_[160][212][207][160][199][207][160][194][193][195][203] [160][160][160][160][160][160][160][160][160][146]" 1590 return 1600 nl=12+lq+li+2*int(n/qc) 1610 n2=nl 1620 nl=nl+2*(int((len(ra$)+n)/cn)) 1630 ifnl>63thennl=nl-63:goto1630 1640 fori=nlto66:print#1:nexti:return 1650 ip$="" 1660 print" [146][157] [157] [146][157] [157]"; 1670 iflen(ip$)>254then goto 1790 1680 getp$:ifp$=""then1660 1690 ifasc(p$)=19orasc(p$)=147thengoto1660 1700 ifp$="_"thenreturn 1710 if p$="" or p$="[145]" or p$="" or p$="[157]" then 1660 1720 printp$;" [146][157] [157]"; 1730 ifasc(p$)<>20andasc(p$)<>130andasc(p$)<>13thenip$=ip$+p$:goto1660 1740 ifasc(p$)=13thenreturn 1750 if len(ip$)<1 and (asc(p$)=20orasc(p$)=157)thenprint"";:goto1650 1760 if len(ip$)=1 and (asc(p$)=20orasc(p$)=157)thengoto1650 1770 ifasc(p$)=20orasc(p$)=157thenip$=left$(ip$,len(ip$)-1):goto1660 1780 goto1660 1790 print:print"[206][207][160][205][207][210][197][160][212][200][193][206][160]254 [195][200][193][210][193][195][212][197][210][211]":print 1800 goto 1650 1810 getp$:ifp$<>""then1810 1820 goto 1660 1830 sys770 1840 rem print questions 1850 x=0:fori=1ton:ifx<len(q$(i))thenx=len(q$(i)) 1860 nexti 1870 it=x+9:cn=int(80/it):qc=cn 1880 n5=14+int(len(rq$)/80)+int(len(i$)/80)+2*int(n/qc) 1890 nl=8+int(len(rq$)/80)+int(len(i$)/80)+2*int(n/qc) 1900 print#1:print#1,rq$:print#1:t=cn:print#1,i$:print#1:print#1:fori=1ton 1910 print#1,i;". ";q$(i);spc(it-len(q$(i))-len(str$(i))-3); 1920 t=t-1:ift<=0thent=cn:print#1:print#1 1930 nexti:print#1:return 1940 poke40503,128:poke40504,128:poke53280,6:poke53281,0:poke646,1 1950 fori=1to15:closei:next:return 1960 print"[147]"tab(8)" [210][201][196][196][204][197][160][205][197][206][213] [146]" 1970 printtab(8)xs$tab(32)xs$ 1980 printtab(8)xs$tab(10)"1 = [199][197][212][160][198][210][207][205][160][196][201][211][203]"tab(32)xs$ 1990 printtab(8)xs$tab(10)"2 = [195][210][197][193][212][197][160][206][197][215][160][210][201][196][196][204][197]"tab(32)xs$ 2000 printtab(8)xs$tab(10)"3 = [195][207][210][210][197][195][212]"tab(32)xs$ 2010 printtab(8)xs$tab(10)"4 = [211][193][214][197][160][212][207][160][196][201][211][203]"tab(32)xs$ 2020 printtab(8)xs$tab(10)"5 = [208][210][201][206][212]"tab(32)xs$ 2030 printtab(8)xs$tab(10)"6 = [208][210][201][206][212][160][193][206][211][215][197][210][211]"tab(32)xs$ 2040 printtab(8)xs$tab(10)"7 = [196][201][211][203][160][196][201][210][197][195][212][207][210][217]"tab(32)xs$ 2050 printtab(8)xs$tab(10)"8 = [195][204][197][193][210][160][205][197][205][207][210][217]"tab(32)xs$ 2060 printtab(8)xs$tab(10)"9 = [209][213][201][212]"tab(32)xs$ 2070 printtab(8)xs$tab(32)xs$ 2080 printtab(8)" [200][201][212][160][195][200][207][201][195][197][160] [146]" 2090 return 2100 zz$="" 2110 get#5,z$:ifasc(z$)<>13thenzz$=zz$+z$:goto2110 2120 return 2130 if n5>63 then print#1:print#1:print#1 2140 if n5>63 then n5=n5-63:return 2150 return 2160 pa$="a":h=5:goto70 2170 c=1 2180 s$=" ":forbl=0to18:s$=s$+" ":next 2190 open8,8,0,"$" 2200 print"[147]"; 2210 get#8,b$:ifb$<>chr$(34)then2210 2220 printspc(8)"";"";b$; 2230 get#8,b$:ifb$<>""thenprintb$;:goto2230 2240 print 2250 for e=0 to 19 2260 get#8,b$,b$:get#8,h$,l$ 2270 get#8,b$:ifb$<>" "then2490 2280 get#8,b$:ifb$<>chr$(34) then 2280 2290 if c/2=int(c/2) then printtab(19)" "; 2300 forxl=1to16:get#8,b$ 2310 ifb$="" or b$=chr$(34) then b$=" " 2320 print ""b$;:next 2330 get#8,b$ 2340 get#8,b$:ifb$=" "then2340 2350 print",";b$;" " 2360 get#8,b$:ifb$<>""then2360 2370 next:c=c+1 2380 if c=2 then print chr$(19)+"";:goto2250 2390 print""chr$(158)" [211][208][193][195][197][146] = [205][207][210][197][160]"; 2400 print" [205][146] = [205][197][206][213]"; 2410 getj$:ifj$=""then2410 2420 ifj$<>" "andj$<>"m"then2410 2430 print" "; 2440 ifj$="m"thenclose8:goto30 2450 print""+""; 2460 if c/2<>int(c/2)thenforxl=0to19:prints$:next:goto2480 2470 forxl=0to19:printtab(19);s$:next 2480 print""; s$;s$;"";"";:goto2250 2490 xl=asc(h$+chr$(0)):xl$=str$(xl+256*asc(xb$+chr$(0))) 2500 poke214,23:poke211,10:print chr$(145);"[156]";xl$;" blocks free ":close8:xc=1 2510 print " ";chr$(158);"[200][201][212] [211][208][193][195][197] [194][193][210]"; 2520 geta$:ifa$=""then2520 2530 ifa$<>" "then2520 2540 printchr$(5)+chr$(147):goto30 2550 data 128,112,207,250,195 2560 restore:forri=139to143:readrn:pokeri,rn:next:poke649,1:xs$=" [146]" 2570 bs$="[147]" 2580 bl$=" " 2590 hn$="_ [212][207][160][199][207][160][194][193][195][203][146]" 2600 return