Page 43 - Trackpad_ipro 4.1_Class8
P. 43

Rules for Drawing 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 top to bottom.
                    Only one flow line should come out of a process symbol.

                    Ensure that only one flow line enters a decision symbol but two flow lines leave the decision box.
                    Ensure that the flowchart has a logical start and end.
                 Advantages of Flowchart


                 Flowcharts provide the following advantages:
                    Better understanding of a problem

                    Facilitates a programmer to analyse the problem in detail
                 Let us understand how some simple flowcharts are made

                 Example 1:  Flowchart to drink a glass of cold  Example 2:  Flowchart to calculate simple
                              water.                                             interest.


                                       Start                                              Start




                                 Go to the kitchen
                                                                                  Read Principal as P
                                                                                       Rate as R
                                 Take a clean glass                                    Time as T



                     Take out a water bottle from the refrigerator

                                                                                   SI = (P * R * T)/100)

                             Pour water into the glass



                                  Drink the water
                                                                                         Print SI



                                  Clean the glass
                                                                                          Stop

                         Fill the bottle and keep it back in
                                  the refrigerator




                                       Stop




                                                                                     Algorithms and Flowcharts   41
   38   39   40   41   42   43   44   45   46   47   48