Page 44 - iprime_V2.2_class8
P. 44

Rules for Drawing Flowcharts

                  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 Flowcharts


                  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



                  42     iPRIME (Ver. 2.2)–VIII
   39   40   41   42   43   44   45   46   47   48   49