Page 10 - Ones and Zeros 4 (Workbook)
P. 10

Programming Languages






             Lesson 3

             If Statement

             You are now going to add questions to the script. You can search the internet to find
             information about dinosaurs.

             Your questions can be true or false questions.
             1.  Run the Scratch app.

             2.  Open the game ‘Dino Quiz’.

             3.  You can do research and find information about dinosaurs. Once you’ve found some,
                 write a few true or false questions.
             4.  Use the ‘if statement’ to add these questions to the game.

             5.  Save the game and exit.




















             Lesson 4


             Data and Variables

             You are now going to make the dinosaur move when it speaks.
             You will also add a variable to keep score of the correct answers in the game.

             1.  Run the Scratch app.

             2.  Open the game ‘Dino Quiz’.
             3.   Add ‘looks’ blocks for the correct and incorrect answers. The replies should be ‘You’re
                 Right!’ and ‘You’re Wrong!’.

             4.  Add ‘sound’ blocks for the correct answers.

             5.  Add a variable to keep the score. Name the variable, ‘Score’.

             6.  Add a data block to make the variable reset to ‘zero’ every time you start the game.



                8
   5   6   7   8   9   10   11   12   13   14   15