Page 170 - Trackpad_V2.1_class8
P. 170

Step 8   From ‘Game’ select the ‘splash’ block, drop the block to ‘if’ of ‘if-else’ block and add the text,

                           ‘Number is Even’.
                   Step 9   From ‘Game’ select the ‘splash’ block, drop the block to ‘else’ of ‘if-else’ block and add the text,
                           ‘Number is Odd’.

                   Step 10  Change the value of number to 6 in ‘set number to 0’ block. Click on ‘Start the simulator’ to view
                           the output.

                   Step 11   Change the value of number to 5 in ‘set number to 0’ block. Click on ‘Start the simulator’ to view
                           the output.






















































                  168   Trackpad (V2.1)-VIII
   165   166   167   168   169   170   171   172   173   174   175