Page 38 - TP_Modular_V2.1_Class5
P. 38

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 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.

                  Drawing Flowcharts

                  Flowchart  to  find  the  smallest  in  two  Flowchart to calculate simple interest.

                  numbers A and B.
                                                                                             Start
                           Start


                                                                                   Read P for Principal
                      Read A and B                                                          r for rate
                                                                                            t for time


                            if        Yes

                          A < B              Print A is smallest                      Calculate
                                                                                      SI = (P * r * t)/100)
                              No


                    Print B is smallest                                                    Print SI



                           Stop
                                                                                             Stop



                      Recap


                          Algorithm is a set of steps in a sequential manner to solve a problem or to
                          complete a task.

                          Flowchart is a graphical representation of the sequence of operations in an
                          information system or program.



                   36       Modular (Ver. 2.1)-V
   33   34   35   36   37   38   39   40   41   42   43