Page 125 - Plus V4 with Adobe class 7
P. 125

Yes            If (Condition)          No
                                                         to be checked
                                           Then                                  Else
                               Do this                                                    Do that



            Look at these examples:

                   Example 1:                                         Example 2:

                   If                                                 Read marks
                      It is Maths class                               If marks is > 50
                   Then                                                  Display Pass
                      Take out Maths book & notebook                  Else
                                                                         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