FUZE basic code!

With my constantly fluctuating teaching career, the latest thing I’ve got involved in is BASIC coding with kids. When I first looked at the code yesterday it threw me back to more than 30 years ago when I had a ZX Spectrum and wrote eccentric programs like how to make past participles when you input French infinitive verbs.

It’s great that kids are now being encouraged again to be creative and not just be “users”.

Here is the FUZE basic code I helped the school kids with yesterday:

SCORE = 0
CLS
FONTSIZE( 3 )
INK = YELLOW
PRINT “Welcome to the quiz – I am your host, THE FUZE. ”
PRINT ” ”
WAIT( 1 )
PRINT “These questions are TRUE or FALSE answers. ”
WAIT( 1 )
CLS
INPUT “Question 1. PIKACHU is an Electric type Pokemon,
TRUE or FALSE? “, answer$
PRINT ” ”
WAIT( 1 )
IF answer$ = “TRUE” THEN
PRINT “CORRECT! PIKACHU is an Electric type! ”
SCORE = SCORE + 1
ENDIF
IF answer$ = “FALSE” THEN
PRINT “INCORRECT! Better luck next time! ”
ENDIF
CLS
WAIT ( 1 )
PRINT “Let’s see how well you did. “
PRINT “ “
WAIT ( 1 )
PRINT “You scored “; SCORE ;” out of 1. “
PRINT “ “
WAIT ( 1 )
IF SCORE = 1 THEN
INK = GREEN
PRINT “Well done! Full marks! “
ENDIF
IF SCORE = 0 THEN
INK = RED
PRINT “0 Marks! Better luck next time!
ENDIF
END

Facebook Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>