May June 1980 - Commodore Computers
May June 1980 - Commodore Computers
May June 1980 - Commodore Computers
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
MAY/JUNE. <strong>1980</strong>. 198O. ISSUE A. COMPUTE. 75<br />
entered ered onn the appropriate priate data lines.<br />
II If' several lessons are to be entered ered on the data<br />
lines, you can occasionally check to see how many<br />
free bytes of memory your PET still has for you u to<br />
use. Typing thee direct command '?FRE(0) fRE(O) will give<br />
you u this s information. If you have an 88KK PET, ,<br />
ANSWER BOX will allow you to enter about 3000<br />
bytes of data before running out of memory. . However,<br />
don't push your luck down to the last few<br />
bytes. Some bytes are consumed when a program runs.<br />
Allow for this.<br />
Lines 100-104 are used to lo print thee name off a<br />
particular ANSWER BOX program. In the present<br />
instance, nce , we are calling it IDENTIFYING IDENTIfYI NG COM<br />
PLETE SSENTENCES.<br />
ES.<br />
Look at Line Linc 7000. The first data entry is 23,<br />
which is thee number of the lesson (sec (see Figure 1).<br />
The next fifteen entries are the right ans\vers answers for<br />
r<br />
this s lesson. Finally, thee arrow pointing up tellss<br />
the PET that the lesson is over and that thee resultss<br />
should be summarized. Lines 9000·9999 9000-9999 summarize<br />
the e results s of the lesson.<br />
Readers may fee fcc free to copy the listing of<br />
ANSWER BOX and to use it as they think best. bcst .<br />
Readers ers who would rather just buyy a copy off thee<br />
tape itself may do so for S7.95 37.95 from MICRO-ED,<br />
INC., P.O. Box 24156, J56, Minneapolis, M Minnesota, Minnesola, 55424.<br />
The author would be gLad glad to fo resjJond respond Lo to questions and<br />
comments from interested readers.<br />
5 REM BY T. ESBENSEN FOR tUCRO-ED,<br />
MICROED,<br />
-. , INC.P.O. BOX 24156, , MINNEAPOLIS,<br />
-. , MN. . 55424<br />
10 REM USE LINES 7000-7998 FOR DATA.<br />
20 REM PAGE OR LESSON NUMBER SHOULD BE ,<br />
,FIRST -.FIRST DATA ENTRY. .<br />
30 REH REM THEN ENTER ANSWERS. ALL ENTRIES,<br />
, SHOULD BE SEPARATED BY COHHAS .<br />
-. SHOULD BE SEPARATED BY COMMAS.<br />
40 REH REM END EACH LESSON WITH •"<br />
50 REM EXAMPLES: 7000 DATA 1,A,B,C,D,'<br />
1,A,B,C,D,"<br />
60 REMM 7010 DATA 2,WAS,IS,~ 2,WAS,IS,'<br />
70 DINWR$ DIMWR$(100)<br />
95 TI$=" TlS="000000"<br />
"<br />
99 PRINT"fltHv"<br />
PRINT"fiWW<br />
100 PRINT"L~~***************************<br />
-,** *****<br />
101 PRINT".l»>*<br />
".!:.;';'*<br />
102 PRINT"j:>>* IDENTIFYING COMPLETE -.<br />
103 PRINT"x»*<br />
*<br />
104 PRINT"r^>***************************<br />
PRINT"L~~***************************<br />
-,*******<br />
115 PRINT"^":INPUT"STUDENTIS FIRST -.<br />
,NAHE;';'2~~~";NA$<br />
-.LE$<br />
140 PRINT"6":RESTORE<br />
PRINT"fi":RESTORE<br />
150 READD5<br />
155 PRIN<br />
-,HING"<br />
-.HING"<br />
*<br />
102 PRINT".!:.;';'* IDENTIFYING COMPLETE ,<br />
,SENTENCES -■SENTENCES *<br />
103 PRINT".!:.;';'*<br />
115 PRINT"v":INPUT"STUDENT'S FIRST,<br />
120 IFNA$="2"THEN90<br />
"1"THEN90<br />
130 PRINT"^":INPUT"LESSON<br />
"v":INP NUMBER;';'2~~~" ;<br />
,LE$<br />
150 READD$<br />
155 PRINT"hvvvHvHHHHHHHH;'.!:.SEARC<br />
160 IFD$="""THENPRINT"vSORRY. IFD?=""~"THENPRINT"^SORRY. LESSON,<br />
-i<br />
-^NUMBER ,NUMBER NOT FOUND.":PRINT:PRINT"TRY<br />
PRINT"TRY<br />
,-i AGAIN.":GOT0130<br />
":GOTO130<br />
170 IFD$=LE$THEN190<br />
180 GOT0150<br />
180 GOTO150<br />
190 PRINT"6"<br />
PRINT"fi"<br />
200 READA$<br />
210 IFA$="""THEN9000<br />
210 IFA$="'''THEN9000<br />
220 P=P+l<br />
P=P+1<br />
225 IFP9THENSP=1<br />
227 IFP>9THENSP=1<br />
300 PRINT"6"<br />
PRINT"fi"<br />
301 PRINT" 99999999999999999999<br />
302 PRINT" 5. .6. £<br />
303 PRINT" 5. 5_ ANSWER ANS\'IER BOX £ .6.<br />
304 PRINT" 59999999999999999996<br />
305 PRINT" 999995 .6. £<br />
306 PRINT" 5. 5_ 5. 5_ .6. £<br />
307 PRINT" 5. 5_ 5.<br />
308 PRINT" 5. 5. 5 .6. £<br />
309 PRINT" 888885 £ .6.<br />
310 PRINT" 5. 5_ .6. £<br />
311 PRINT" 5. 5 .2. £<br />
312 PRINT" 5. 5_ .6. £<br />
313 PRINT" 88888888888888888888<br />
320 PRINT" O###I#P<br />
O#####P<br />
321 PRINT" ERRORS .%. £ _L ~<br />
322 PRINT" LSSSSS L$$$$$: ;<br />
326 PRINT" O##PO##P<br />
327 PRINT" TH1E TIME SPENT.%. &_!_&_!_ ~ ,<br />
328 PRINT" LSS; LS$:L$$: LSS;<br />
329 PRINT" MIN. SEC.<br />
360 PRINT"MvvvHHvvvHHHHHHHHH<br />
PRINT"!<br />
370<br />
-,~~";E<br />
370 PRINT"hvvvvvvvvvvvvvvvvvv;.;.;.;.;.t;.;.;.;.;.<br />
-,~~~~";<br />
375 PRINTMID$(TI$,3,2) ;";';''';MID$(TI$,5,<br />
375 PRINTMID$(TI$,3,2) ; "»" ;MID$ (TI$ , 5<br />
,2) i2)<br />
380 PRINT"hvvvvvvv;';''';SPC(SP) ^W^tt^W^" ; ;P;<br />
382 INPUT";';';'l~~~";R$<br />
"> »2