Page 43 - iprime_V2.2_class8
P. 43

Step 6  If A is equal to B, print "A and B are equal".

                    Step 7  Stop.
                     DEFINING FLOWCHARTS

                 A flowchart is a type of graphical diagram that represents an algorithm. It is a set of instructions
                 that  can  be  followed  to  perform  a  specific  task,  workflow,  or  process.  This  diagrammatic

                 representation illustrates a solution model for a given problem. Flowcharts are used in analysing,
                 designing, documenting, or managing processes or programs in various fields.
                 Flowcharts  show  the  sequence  of  instructions  in  a  program.  They  play  a  vital  role  in
                 programming by helping to understand the logic of complicated and lengthy problems.
                 Once a flowchart is drawn, it becomes easy to write the program in any high-level language.
                 Flowcharts are also helpful in explaining the program to others. Thus, it is accurate to say
                 that a flowchart is essential for a better understanding of a complex program.
                 Symbols Used in Flowcharts


                 Different symbols are used to draw different types of flowcharts. Let us discuss them.


                      Name             Symbol                                  Description


                                                      It indicates the start and stop points of the flowchart. It
                   (Start/Stop)
                                                      usually contains the words 'Start' or 'Stop'.


                                                      It shows a process or action step. This is the most common
                     Process
                                                      symbol used in flowcharts.



                                                      It indicates a question or branch in the process flow. It is
                     Decision
                                                      used when there are 2 options (Yes/No).



                      Input/                         It represents material or information entering or leaving the
                      Output                         system, i.e., input and output.




                    Flow Line
                     (Arrow,                         It shows the direction in which the process flows.
                   Connector)


                                                     It is used as a connector to show a jump from one point in
                    Connector
                   (Inspection)                      the flowchart to another. Connectors are usually labelled in
                                                     pairs to indicate matching jump points.







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