Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 70 - logicode 2609 C6
P. 70

    Flowchart 1: Draw a flowchart for calculating    Flowchart 2: Draw a flowchart to find out whether
                      the area of a rectangle using Google Drawings.   an individual is eligible for vote or not.

                                                                                 Start
                                           Start

                                                                              INPUT AGE
                                   INPUT LENGTH, WIDTH

                                   AREA=LENGTH * WIDTH                          IS AGE      NO          DISPLAY "NOT

                                                                                 >=18?                ELIGIBLE FOR VOTE"
                                       DISPLAY AREA
                                                                                    YES

                                                                       DISPLAY "ELIGIBLE TO VOTE"
                                           Stop

                                                                                 Stop

                      Flowchart  3: Draw  a  flowchart to  check      Flowchart 4: Draw a flowchart to display cube of
                      whether the number is positive or negative.     first 5 natural numbers.

                                                                                 Start
                                         Start

                                                                             Cube, Count=1
                                      Input num

                                                                                   IS       NO
                                                                               Count<=5?                  Stop
                              True     NUM < 0      False
                                           ?                                         YES
                                                                                               Cube= Count * Count * Count

                                                                                DISPLAY
                        The number                 The number is                 Cube
                        is negative                zero or positive

                                                                            Count= Count+1

                                         Stop

                           Tick ( ) if you know this.
                               An algorithm provides a clear and structured approach to find a solution.

                              A flowchart displays the steps in order and helps us understand and check instructions quickly.

                       68   Premium Edition-VI

| 65 66 67 68 69 70 71 72 73 74 75 |