Page 91 - Code & Click - 5
P. 91

Rules for Drawing a Flowchart

            Some guidelines to draw a flowchart are:
                1.  A flowchart should be clear, neat, and easy to follow.
                2.  A flowchart is generally drawn from top to bottom. It may be drawn from left to
                    right if there is limited space.

                3.  A flowchart must have a Start box and a Stop box.
                4.  Only one flow line should come out of a process or input/output box.
                5.  Only one flow line should go in a decision box, but two flow lines, one for each
                    possible answer, should come out from the decision box.

                6.  Two flowlines cannot intersect each other in a flowchart.
            Let us consider an example to understand flowcharts.
            Example 3: Write an algorithm and draw a flowchart to get ready for school.













                          Step 1                             Step 2                             Step 3
                        Wake up.                          Take a bath.                     Wear uniform.












                                  Step 4                                              Step 5
                             Have breakfast.                                  Board the school bus.


                               Algorithm                                           Flowchart
             Step 1: Wake up.                                                           Start


                                                                                      Wake up
             Step 2: Take a bath.
                                                                                     Take a bath
             Step 3: Wear uniform.                                                 Wear uniform



             Step 4: Have breakfast.                                               Have breakfast
                                                                                Board the school bus
             Step 5: Board the school bus.
                                                                                        Stop

                                                                                                                 89
   86   87   88   89   90   91   92   93   94   95   96