Page 43 - CT_AI_Class-5
P. 43

Step 6   Add ice cubes if desired.

                 Step 7   End



                 LOGICAL THINKING AND DECISION MAKING

                 Logical thinking is when you make decisions based on facts and rules, not feelings
                 or guesses. While solving a maths problem or following a set of rules in a game,

                 logical thinking is always used.

                 Example:

                   Not logical (feelings/guess): "I think it will rain because I feel sad today."

                   Logical (facts/rules): "The weather app says 80% rain and dark clouds are in the
                    sky. So, I will take an umbrella.”

                 One of the  most  important  elements  in algorithmic  thinking  is  the  decision.
                 Sometimes, you need to choose between options. This is called decision making.

                 For example, deciding what to wear.

                   If it is raining → Wear a raincoat.

                   If it is sunny → Wear light clothes.

                 These are called  conditions (if–then statements).  Conditions are used  to  make
                 decisions  based  on specific  situations.  They  help in deciding  the  action  to  take

                 depending on whether the condition is true or false.

                 Algorithm:

                 Step 1   Start

                 Step 2   Check if it is raining

                 Step 3   If YES → Take an umbrella
                 Step 4   If NO → Do not take an umbrella

                 Step 5   End






                                   If P stands for ‘+’, Q stands for ‘-’, R stands for ‘x’ and S stands for ‘÷’ then

                                   18 R 14 P 6 Q 16 S 4 is                .
                                          a)  252                                            b)  253


                                          c)  254                                            d)  256





                                                                                          Algorithmic Thinking     41
   38   39   40   41   42   43   44   45   46   47   48