• Aucun résultat trouvé

8330 DATA"IT IS THE WORLD'S LARGEST PRODUCER OF ^

Dans le document Publishing is (Page 178-182)

{3 SPACES}BANANAS" :rem 71 Q

8340 DATA"THE WORLD'S MAIN PRODUCER OF BALSA WOOD"

:rem 202 [^J 8350 DATA"THE CAPITAL OF THIS NATION IS QUITO",ECU

ADOR sJ

8360 DATAE,"ONLY MALAYSIA PRODUCES MORE TIN THAN

{4 SPACES}THIS COUNTRY"

:rem 77

w

8370 DATA"THE ANDES MOUNTAINS FORM ITS WESTERN ^J

{4 SPACES}BORDER" :rem 68

8380 DATA"CHILE CAPTURED THIS COUNTRY'S PACIFIC ^

{3 SPACES}COAST" :rem 61

-8390 DATA"THE CAPITAL OF THIS NATION IS LA PAZ",BO Lj

LIVIA :rem 237

160 LJ

n

Level

4

Mr. President

^ Skill area: Social Studies Level: 4

r^ Equipment required: None Modification: Yes

^ "Mr. President" is designed to teach facts about the United States

r-\ presidents. You are given clues and then asked to identify the president from the clues. Points are given depending on how

/ many clues you need to identify a president.

How to Play

^ You will be given up to four questions that can be answered with

^ the name of a particular president. To begin the game, hit any key and wait ten seconds for the computer to organize the questions.

f**) When a question is asked by the computer, answer it by

— typing the name of the president as it appears below. The com puter will count any misspelling as an incorrect answer, so make f^\ sure to enter the names exactly. If you don't know the answer to a

-~ clue, take a guess, or press the RETURN key.

Here are the United States presidents whose names you'll be

""^ using:

r~) J Adams JGarfield L Johnson F Roosevelt

Q Adams U Grant J Kennedy T Roosevelt

° C Arthur W Harding A Lincoln WTaft

r*\ J Buchanan B Harrison J Madison Z Taylor

' J Carter W Harrison WMcKinley H Truman

G Cleveland R Hayes J Monroe J Tyler

r^ CCoolidge H Hoover R Nixon MVanBuren

D Eisenhower A Jackson F Pierce G Washington

" MFillmore T Jefferson JPolk W Wilson

r*\ GFbrd A Johnson R Reagan

^ You'll notice a few things about this list. First, the men are listed by first initial rather than first name. Second, there is no O period after the initial as it is written for the computer. Third,

be-^ cause there are two presidents with the name J Adams, John Adams and John Quincy Adams, the two presidents have been f*) distinguished by referring to the latter as Q Adams. Pay close

^N attention to these rules. If you know the answer to a question is

^ 161

Abraham Lincoln and you enter the words Abraham Lincoln or ^J even A. Lincoln, the computer will count your answer incorrect. ^

If you still haven't discovered the name of a president after

four questions, the name will appear on the screen. A second or U.' two after the name flashes, the game continues. ^j You can quit playing at any time by entering END on the key- '.T.

board. Your percentage score will not be affected if you quit before ^

all questions have been asked. rj

Scoring Q

Points will be awarded as follows:

If you guess correctly after only 1 clue, 4 points.

If you guess correctly after 2 clues, 3 points. *—'

If you guess correctly after 3 clues, 2 points. Lj

If you guess correctly after 4 clues, 1 point. r\

If the computer has to show you the correct answer, -5 points.

Your score is shown at the end of the game. You will also see a

percentage score. W

Mr. President ~

Remember, do not type the checksum number at the end of each line. For example, do i^j not type ":rem 123/' Please read the article about the "Automatic Proofreader" in

Appendix E. ^J

1 REM MR PRESIDENT :rem 98 ,~

100 NP=39:CB=828:VC=53248:MC=54272

:rem 151

W

105 POKEVC+32#6:POKEVC+33#12:PRINTCHR$(147):rem 39 (, 110 FORX=54272TO54296:POKEX,0:NEXTX :rem 173

120 F1$="{BLU}{RVS} ****** {RED}{27 SPACES} LJ {OFF}":F2$=M{BLU}{RVS}{2 SPACES}* * * * *

{2 SPACES}{OFF}" :rem 118 ^l

130 F3$="{RED}{RVS}{40 SPACES}{OFF}" :rem 114 ,

140 DIM NT%(31) :rem 235

w

150 READX$:IFX$o"$SONGllTHEN150 : rem 81 ^j 160 FORX=0TO31:READZ:NT%(X)=Z:NEXTX :rem 12 _ 170 SM=((PEEK(53272)AND240)/16)*1024:CM=55296 ^J

:rem 146

180 GOSUB700 :rem 176 V-J

200 S%=0:FORX=1TONP:POKECB+X#0:NEXTX:PRINTCHR$(147

);2POKEVC+32,12:POKEVC+33,1 :rem 62

v-/

210 FORX=1TONP:GOSUB800:POKECB+Z#X:NEXTX :rem 155 Q

300 X=l :rem 89

305 Y=PEEK(CB+X):Y=(Y-1)*5 :rem 227 \^j

310 RESTORE:IFY=0THEN330 :rem 12

320 FORW=1TOY:READX$:NEXTW :rem 223 UJ

330 FORW=1TO5:READX$:QT$(W-1)=X$:NEXTW :rem 126

.-162 LJ

o

Level

r*| 400 W=0 :rem 88

^ 405 GOSUB3000 :rem 220

~ 407 POKEVC+33,1 :rem 81

^ 408 PRINT"{BLK}{HOME}{23 DOWN}";SPC(15);"SCORE = ";

' S%; :rem 149

O 410 PRINT"{HOME}{10 DOWN}{2 SPACES}QUESTION #";W+1 :rem 172 O 420 PRINT"{2 DOWN}HE ";QT$(W);".{2 DOWN}" :rem 145

^ 430 X$="":POKE198,0:INPUTX$:IFX$=QT$(4)THEN500

~

:rem 213

/—», 435 IFX$="END"THEN600 : rem 196 440 POKEMC+0,0:POKEMC+1,10:POKEMC+4,17:POKEMC+5,15

r-\ :POKEMC+6,15:POKEMC+24,15 :rem 207

445 POKEVC+33,0:FORV=1TO100:NEXTV:POKEMC+4,16

O irera 37

450 POKEMC+24,0:W=W+1:IFW<=3THEN405 :rem 90

^

455 GOSUB3000 irem 225

r^ 460 POKEVC+33,1:PRINT"{RED}{HOME}{13 DOWN} ANSWER f ^

{SPACE}= ";QT$(4):S%=S%-5 :rem 198

r^ 465 PRINT"{BLK}{HOME}{23 DOWN}";SPC(15);"SCORE =";

S%; :rem 152

O 470 FORW=1TO2500:NEXTW:GOTO560 :rem 143

480 GOTO600 :rem 107

O. 500 S%=S%+4-W :rem 165

-^ 510 POKEMC+0,0:POKEMC+1,0:POKEMC+5,15:POKEMC+6,15:

~

W=20:POKEMC+24,8 :rem 178

^ 520 FORV=12TO1STEP-1:POKEVC+33,V:POKEMC+4,17

1

:rem 227

f^ 530 POKEMC+1,W:W=W+5:FORX1=1TO50:NEXTX1 :rem 221

540 POKEMC+4,16:NEXTV :rem 25

O 550 POKEMC+24,0 :rem 70

560 X=X+1:IFX<=NPTHEN305 :rem 227

~

600 PRINTCHR$(147);"{BLK}{DOWN}{15 SPACES}{RVS}TES

mm, T OVER! {OFF}" :rem 114

f

610 PRINT"{3 DOWN}{2 SPACES}YOUR SCORE = ";S%

^ :rem 86

620 IFS%<0THENS%=0 :rem 31

H) 625 X=X-1:IFX<1THENX=1 :rem 107

^ 630 X=INT((S%*100)/(X*4)) :rem 36

~

640 PRINT"{2 DOWN}{2 SPACES}YOUR GRADE = ";X;"

*0* {LEFT}%" :rem 80

r '

650 PRINT"{3 DOWN}{2 SPACES}PLAY AGAIN?":PRINT"

r*) {DOWN}{2 SPACES}ENTER {RVS}Y{OFF} OR {RVSjN

{OFF}" :rem 158

D 660 GETX$:IFX$=""THEN660 :rem 137

670 IFX$="Y"THEN200 :rem 67

680 IFX$o"N"THEN660 : rem 128

^s- 690 GOSUB3500:PRINTCHR$(147) :rem 156

r^ 695 END :rem 123

163

Level ^

4

700 PRINT" {BLK} {DOWN} {8 SPACES}*** MISTER PRESIDEN [^j

T ***" :rem 135

705 PRINT"{WHT}{2 DOWN}YOU WILL BE GIVEN UP TO FOU L^

R QUESTIONS{2 SPACES}ABOUT EACH U.S. PRESIDENT

:rem 132

^

710 PRINT"{2 DOWNjPOINTS WILL BE GIVEN DEPENDING U p,

Dans le document Publishing is (Page 178-182)