Page 76 - IT_V5.0_Class7
P. 76

Block                          Explanation

                                                  Reports the letter at the specified position in the string.



                                                  Reports the length of the string.


                                                  Checks if the string contains the specified character.

                                                  Reports the remainder of the division of the first number by the
                                                  second number.


                                                  Rounds the number to the nearest integer.

                                                  Reports  the  absolute  value,  floor,  ceiling,  square  root,  sine,
                                                  cosine, tangent, etc., of the number.

                  Example 11: When the Green Flag is clicked, the sprite sets its colour effect to 17 (12 + 5), thinks
                  “Hmm” for a random duration between 1 and 10 seconds, and then sets its size to 100% (10 * 10%).
























                  Example 12: When the green flag is clicked, the sprite sets its colour to a randomly picked value
                  between 1 and 10. It then thinks “Hmm” for a duration between 60>50 seconds, and finally says
                  “Hello!” for a duration 12-4=8 seconds.


























                    74    Information Technology (V5.0)-VII
   71   72   73   74   75   76   77   78   79   80   81