Page 125 - TP_Plus_v4_Class7
P. 125

True           If (Condition          False
                                                              to be checked)


                                    Do this                                                    Do that



                Look at these examples:
                        Example 1:                                         Example 2:

                        If                                                 If
                           It is Maths class                                  Marks is greater than 50
                        Then                                               Then
                           Take out Maths book & notebook                     Display Pass
                        Else                                               Else
                           Take out Science book & notebook                   Display Fail

                        Example 3:                                         Example 4:

                        If                                                 If
                           It is raining                                      Number is divisible by 2
                        Then                                               Then
                           Carry an umbrella                                  Print “The number is EVEN”
                        Else                                               Else
                           Do not carry an umbrella                           Print “The number is ODD”






                           Experiential Learning

                           #Conditions

                   'If' an event occurs, 'then' what happens? Complete the sentences.

                       1.  If the fire alarm rings then                             .

                       2.  If the referee blows the whistle then                             .
                       3.  If the traffic light is red then                          .

                       4.  If I am sick then                              .

                       5.  If a cell phone battery charge is 0 then                            .
                          Else                                 .

                       6.  If the CAPS LOCK key is ON then                               .

                          Else                                 .


                                                                                                               #Activity





                                                                                             #Algorithmic Intelligence 123
   120   121   122   123   124   125   126   127   128   129   130