Page 74 - 2502_Pakistan-kifayat_C-7
P. 74

Step 4:   Find product = a × b × c.
              Step 5:   Print sum and product.

              Step 6:   Stop


                       Double Tap                                                      Century   #Critical Thinking
                                                                                         21 st
                                                                                        Skills
                     Write any three characteristics of a good algorithm.

                     a.

                     b.

                     c.



                    FLOWCHART


              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 to a given problem. Flowcharts are used in analysing, designing, documenting
              or managing a process or program in various fields.

              Flowcharts show the sequence of instructions in a single program. They play a vital role in the field
              of programming. These are helpful in understanding the logic of complicated and lengthy problems.
              Once a flowchart is drawn, it becomes easy to write the program in any high-level language. Often we
              see that flowcharts are helpful in explaining the program to others. Hence, it is correct to say that a
              flowchart is essential for the better understanding of a complex program.

              Symbols used in Flowcharts

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

                  Symbol           Name                                     Description

                                                It is used to show the start and stop points of the flowchart. It usually
                                 (Start/Stop)
                                                contains the words 'Start' or 'Stop'.

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

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


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

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




                  72  Premium Edition-VII
   69   70   71   72   73   74   75   76   77   78   79