29.12.2014 Views

Apple Orchard 1980 Fall v1n2 reduced

Apple Orchard 1980 Fall v1n2 reduced

Apple Orchard 1980 Fall v1n2 reduced

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

PAGE 58 THE APPLE ORCHARD FALL <strong>1980</strong><br />

above example we can reduce the<br />

likelihood of error by asking the<br />

user to type in a NUMBER instead<br />

of an entire name. On screen it will<br />

look like this:<br />

MAJOR AUTOMOBILES<br />

Please type the number of the line<br />

you want to see:<br />

1) FORD<br />

2) CHRYSLER<br />

3) CHEVROLET<br />

4) VOLKSWAGON<br />

5) PACKARD<br />

Which number<br />

Now all we have to check for is the<br />

validity of the number:<br />

IF IN$ "5" THEN<br />

GOTO REJECT<br />

Here's what the whole program<br />

would look like, exclusive of the<br />

subroutines containing the modelprice<br />

information (references to<br />

which you would insert at line 210):<br />

10 REM AUTO PRICING<br />

PROGRAM<br />

20 REM RUNS ON APPLE II<br />

30 REM LINES 40, 60, 160,170<br />

ARE SCREEN FORMAT<br />

COMMANDS<br />

40 HOME<br />

50 1$ = "MAJOR AUTOMO<br />

BILES"<br />

60 HTAB 21 - LEN (1$) I 2<br />

70 PRINT 1$<br />

80 PRINT : PRINT<br />

90 PRINT "PLEASE TYPE THE<br />

NUMBER OF THE LINE YOU<br />

WANT TO SEE:"<br />

100 PRINT : PRINT<br />

110 FOR X = 1 TO 5<br />

115 READ CHOICE$(X)<br />

120 PRINT TAB (10) X; ")";<br />

COUNT$ (X)<br />

130 PRINT<br />

140 NEXT X<br />

150 PRINT<br />

160 VTAB 22<br />

170 HTAB 5<br />

180 INPUT "WHICH NUMBER";<br />

IN$ ·<br />

190 IF IN$< "1" OR IN$ > "5"<br />

. THEN GOSUB 1000: GOTO<br />

160<br />

200 CHOICE= VAL (CHOICE$)<br />

210 ON CHOICE GOSUB N1,<br />

N2 .., NN<br />

999 END<br />

1000 REM WRONG CHOICE<br />

1010 PRINT "NOT ON MY LIST.<br />

NUMBERS 1 - 5 ONLY."<br />

1020 RETURN<br />

2000 DATA FORD, CHRYSLER,<br />

CHEVROLET, VOLKS<br />

WAGON, PACKARD<br />

There are other input errors that<br />

users can make, of course. S/he can<br />

hit the RESET key or kick out the<br />

plug - in fact, there is no end to<br />

the creativity of the truly dedicated<br />

naive computer user. All we can do<br />

is protect against the errors we<br />

know and constantly strive to<br />

· devise more careful user-proof<br />

code.<br />

Either that or go back to CB<br />

radios.<br />

LOCKESMYTHE COPYRIGHT© <strong>1980</strong><br />

SCOT KAMINS<br />

ALL RIGHTS RESERVED<br />

~ . . ~<br />

Lower Case + Plus<br />

by: Lazer Systems<br />

for the <strong>Apple</strong> II $59. 95<br />

• NORMAL AND INVERSE LOWER CASE.<br />

• 2 CHARACTER SETS ON BOARD.<br />

•CHARACTER SET USER DEFINABLE WITH A<br />

2716 EPROM .<br />

•EXPANSION SOCKET FOR RAM BASED<br />

CHARACTER SET & CONTROL.<br />

•HI-RES GRAPHICS ON THE TEXT PAGE.<br />

• RESET DISABLE CAPABILITY.<br />

Send Check or Money Order to :<br />

LAZER SYSTEMS<br />

P.O. Box 55518<br />

Riverside, Calif. 92517<br />

MIC or Visa acceptable. Include Card No., Exp. Date & Signature.<br />

INTRODUCTORY OFFER: Send this<br />

ad or zerox copy with $54.95 to get<br />

$5.00 off the retail price.<br />

Calif. res. add $3.30 sales tax.<br />

Outside cont. U.S.A. add shipping charges.<br />

Offer expires Dec. 31, <strong>1980</strong>. Allow 3 weeks<br />

lllii.. for delivery. A01 ~<br />

INTRODUCING<br />

for the APPLE II *<br />

"APPLE -<br />

SIMON SEZ"<br />

· Challenge your wits by testing your memory .<br />

and concentration. Repeat exactly the<br />

sequence of colors and sounds randomly<br />

generated by APPLE-SIMON SEZ and you<br />

win, or program you r own sequence of<br />

colors and sounds to baffle your friends. Play<br />

with both. colors and sounds or just colors or<br />

just sounds. If you lose, APPLE-SIMON<br />

SEZ'S humilating "razz" lets you and<br />

everyone around know.<br />

Six game variations for your enjoyment.<br />

Now available on cassette at the low<br />

introductory price of ONLY $9.95, please<br />

add $.75 shipping and handling.<br />

SEND CHECK OR MONEY ORDER TO:<br />

BARTON ENTERPRISES, INC.<br />

1604 MARSH LANE<br />

CARROLL TON, TEXAS 75006<br />

•APPLE fl is a registered trademark<br />

of <strong>Apple</strong> Computer, Inc.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!