Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 118 - 2620_Birla Open Mind C-6
P. 118

    Take Off                                                          Century   #Critical Thinking
                                                                                                      21 st
                                                                                                     Skills
                        Look at the code and decode the message.
                        Code:

                        A-1, B-2, C-3, D-4, E-5, F-6, G-7, H-8, I-9, J- 10, K-11, L-12, M-13, N-14, O-15, P-16, Q-17, R-18, S-19, T-20,
                        U-21, V-22, W-23, X-24, Y-25, Z-26, Space-27.

                          1
                              12
                        Message:  5     18   20   27   13    1   10   15   18   27   3    25   3   12   15   14    5

                  In our daily life, we have to solve various problems by using different strategies. These strategies are
                  called problem-solving techniques. Algorithms and mind maps are one of those.

                       ALGORITHM

                  An algorithm is a set of steps in a sequential manner to solve a problem or to complete a task. These
                  steps are the foundation to a program. They are important to programming as recipes are for cooking.

                  Writing an Algorithm

                  The construction of the Algorithm is the stage which requires creative thinking and finding the best

                  possible combination of steps to get the result. For example,
                  Example 1: Algorithm for going to the market to purchase a pen

                  Step 1:    Start.

                  Step 2:    Check your wallet for cash.
                  Step 3:    Go to the market.

                  Step 4:    Go to the stationery shop.
                  Step 5:    Ask for your favourite pen.

                  Step 6:    If pen is available, then go to step 7 otherwise go to step 10.
                  Step 7:    Give money to the shopkeeper.

                  Step 8:    Keep the purchased pen safely.
                  Step 9:    Go back home and go to Step 12.

                  Step 10:  Ask for any other brand of pen.

                  Step 11:  Go to step 6.
                  Step 12:  End.
                  Example 2: Complete the algorithm to find sum and product of three numbers.

                  Step 1:    Start.

                  Step 2:    Read (Input) the three number as "a","b","c" from the user.

                      116  Premium Edition-VI

| 113 114 115 116 117 118 119 120 121 122 123 |