Page 121 - trackpad v5.1 class 6 flipbook
P. 121

▶   The flowchart for an algorithm to determine the largest number among the entered numbers is given
                    below. Using it, write the algorithm.


                                                     Start

                                                   Input A & B



                                        Yes                          No
                                                       Is

                                 Display B                             Display A
                                                      Stop

                 ▶   Write the algorithm for the following and then draw the flowchart.
                    (a)  To check if a given number is odd or even.
                    (b)  To check whether the entered number is divisible by 5 or not.




                                                                                                    21 st   #Creativity
                                                                                                 Century
                                                                                                   Skills  #Critical Thinking
                  FUN ACTIVITY

                    Take a chart paper and draw all the symbols used while creating a flowchart. Also, mention the
                    names and the use of each symbol.






                          COding Zone       COding Zone    {}      =     COding Zone #Communication
                                {C ding z ne}
                                                                                               21 st
                                                                                            Century
                                                                          </>
                                                                                              Skills
                     Following is an algorithm to accept the age of a person and check whether he/she is eligible to
                     vote or not. A person can only vote if he/she is 18 years old or more. Number the steps of the
                     algorithm in the correct order.
                          Accept the age of the person.                   Stop.
                          If age is greater than or equal to 18, then display, ‘You are eligible to vote’.

                          Start.
                          If age is less than 18, then display, ‘You are not eligible to vote’.





                   FOR THE TEACHER

                  1.   Discuss with the students about the development of machine/assembly languages, then 3rd generation procedural
                     languages like C to object-oriented languages like Java.
                  2.   Assign the task of making algorithms and flowcharts based on real-life situations to help students understand the
                     concepts easily.






                                                                                 Algorithm, Flowchart and Mind Maps  119
   116   117   118   119   120   121   122   123   124   125   126