11.07.2015 Views

Here - 1000 BiT

Here - 1000 BiT

Here - 1000 BiT

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.

Or if the B$ box contains "FIRE"then the phrase B$O"FIRE" is FALSEand the computer will not print anything.<strong>Here</strong> is how it looks in a program:10 PRINT "WITH DOGS ITS A COLD NOSE"11 PRINT20 PRINT "WITH DRAGONS, IT'S..."21 PRINT25 PRINT "HOW IS YOUR DRAGON'S BREATH?"26 PRINT28 PRINT "(ENTER 'FIRE' OR 'COLD')"29 PRINT30 INPUT B$40 IF B$< >"FIRE" THEN PRINT "FEED HIM SOME HOT CHILI"50 IF B$ = "FIRE" THEN PRINT "WATCH OUT!"60 PRINT "NICE DRAGON!"oAssignment 9B:1. Write a "pizza" program. Ask what topping is wanted. Make the computer answersomething silly for each different choice. You can choose mushrooms, pepperoni,anchovies, green peppers, etc. You can also ask what size.2. Write a color guessing game. One player INPUTs a color in string C$ and the otherkeeps INPUTing guesses into string G$. Use two IF lines, one with a "phrase A"G$< >C$for when the guess is wrong, and the other with an "=" sign for when the guess is right.The "command C" prints "WRONG" or "RIGHT!"58

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

Saved successfully!

Ooh no, something went wrong!