Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 69 - 2607_Trackpad_Pro_5.1_flipbook_C6
P. 69

    RULES TO DRAW FLOWCHART
                     You must follow these basic rules while drawing a flowchart:

                       The flowchart should be clear, neat and easy to follow.
                       Maintain the direction of the flow from left to right or from top to bottom.
                       Only one flow line should come out of a process symbol.

                        Ensure that only one flow line should enter a decision symbol, but two flow lines should leave the
                       decision box.
                       Ensure that the flowchart has a logical start and end.

                     ADVANTAGES OF A FLOWCHART

                     Flowcharts provide the following advantages:
                       Programmers can analyse the problem in detail.
                       Programmers can easily understand the logic.

                       Ideas and solutions can be communicated easily and clearly.
                       Once the flowchart is prepared, the coding becomes easy for the programmer.

                                DRAWING A FLOWCHART

                     Let us now learn how to draw a flowchart.

                     MAKING A CUP OF TEA                                    CALCULATING THE AREA OF A CIRCLE

                                         Start                                                 Start

                                Read Kettle, Teabags,                                    Read r (radius)
                             water, milk, sugar and cup

                              Boil the water in the kettle                                  Calculate
                                                                                         Area = 3.14 × r × r

                         Pour the boiling water into the cup

                                                                                            Print Area
                              Add milk, sugar and put a
                                  teabag in the cup
                                                                                               Stop

                                     Stir the tea

                                    Tea is ready

                                         Stop

                                                                                                 Algorithm & Flowchart  67

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