12.07.2015 Views

page-1983-101-timex-sinclair-programming-tricks

page-1983-101-timex-sinclair-programming-tricks

page-1983-101-timex-sinclair-programming-tricks

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.

41 Gee Whiz V: SecondAlphabet SpotterThis Gee Whiz program has the computer ask you foranother number from 1 to 26 and then, faster than ajackrabbit, tell you what letter it goes with.Program Listing10 CLS20 CLEAR30 LET A$= 0 ABCDEFGHIJKLMNOPQRSTUVWXYZ 040 PRINT "'GIVE ME THE NUMBER OF"'50 PRINT "'A LETTER FROM THE ALPHABET 060 PRINT "'FROM 1 TO 26 1170 INPUT N80 CLS90 PRINT •LETTER NUMBER "';N;"' IS 11;A$(N)100 IF INKEY$=• 0 THEN GOTO 100110 GOTO 1042 Gee Whiz VI: GuessThe NumberHere it is! The world's oldest, longest running, mostpopular game: Guess The Number.When you start the program running, the computerthinks of a number and stores that away. You try to guessthe number. If your number is too high, the computer says,"TOO HIGH."If you are too low, the computer will report"TOO LOW."The possible numbers range from zero to 100.58

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

Saved successfully!

Ooh no, something went wrong!