Page 98 - Touchpad_Plus_V3.2_Class 6
P. 98

Rules to Draw 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 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 Flowcharts


                  Flowcharts provide following advantages:
                      It provides a better understanding of a problem.
                      It facilitates a programmer to analyse the problem in detail. Example 2: Flowchart to add

                  Let us understand how some simple flowcharts are made.              first 100 natural numbers.

                  Example 1:  Flowchart to calculate simple interest.                                 Start


                                              Start
                                                                                                    Sum = 0




                                                                                                     N = 0
                                     Read P for Principal
                                              r for rate
                                              t for time                                           N = N + 1



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


                                                                                                       Is

                                            Print SI                                    No        N >= 100?


                                                                                                           Yes
                                              Stop
                                                                                                   Print Sum

                                   Flowchart to calculate simple
                                             interest
                                                                                                      Stop


                                                                                       Flowchart to add 100 numbers



               96       Plus (Ver. 3.2)-VI
   93   94   95   96   97   98   99   100   101   102   103