Page 44 - iPlus_Ver_2.0_class_8
P. 44

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 from 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 Flowchart

                  Flowcharts provide the following advantages:
                  •  It provides a better understanding of a problem.

                  •  It facilitates a programmer to analyse the problem in detail.
                  Let us understand how some simple flowcharts are made.

                  Example 1:  Flowchart to calculate simple  Example 2:  Flowchart to add first 100 natural

                               interest.                                          numbers.

                                        Start                                                  Start



                                 Read P for Principal                                         Sum = 0
                                          r for rate
                                          t for time
                                                                                                N = 0

                                Calculate

                                SI = (P * r * t)/100                                         N = N + 1



                                       Print SI                                            Sum = Sum + N




                                        Stop                                                     Is
                                                                                             N >= 100?
                              Flowchart to calculate simple                       No
                                       interest

                                                                                                     Yes

                                                                                             Print Sum




                                                                                               Stop


                                                                           Flowchart to add first 100 natural numbers


                    42
                         iPlus (Ver. 2.0)-VIII
   39   40   41   42   43   44   45   46   47   48   49