Page 142 - ScienceStd4
P. 142

8.  In the first slot of the ‘greater than’ block, enter the number
                    10.


               9.  In the second slot of the ‘greater than’ block, enter the
                    number 6.
          FOR ONLINE READING ONLY

               10. Click on the ‘Sound’ block menu.

               11. Drag and drop the ‘play sound (  ) until done’ block inside
                    the ‘if (  ) then’ block. See Figure 39.



















                     Figure 39: Inserting the sound block inside the if then block


               You will get the script as shown in Figure 40.
















                      Figure 40: A computer program that plays sound when a

                                                    condition is true

               12. Play the game when the number in the first slot is 10 and
                    the number in the second slot is 6. This is a true condition

                    because 10 is greater than 6. What did you hear in this
                    step?


                                                   135




                                                                                            14/01/2025   18:38
     SCIENCE AND TECHNOLOGY STD 4.indd   135                                                14/01/2025   18:38
     SCIENCE AND TECHNOLOGY STD 4.indd   135
   137   138   139   140   141   142   143   144   145   146   147