Page 284 - Artificial Intellegence_v2.0_Class_9
P. 284

Flowchart

        A flowchart is a graphical representation of an algorithm. It makes use of symbols which are connected through
        arrows to show the direction of flow of information. It has been proved scientifically that visuals have more
        impact on the human brain as compared with text. So, flowcharts are preferred over algorithms for solving a
        problem. The symbols are:
               SYMBOL NAMES                   SYMBOLS                             PURPOSE


           Oval                                                 Used to start and stop a flowchart.



           Parallelogram                                        Used to take input and display output.


                                                                Used to perform assignment, mathematical and
           Rectangle
                                                                processing operations.



                                                                Used for decision making in case of branching
           Diamond
                                                                or looping.


                                                                Used to show the direction of flow of information
           Arrow in any direction
                                                                in a flowchart.

        Drawing a Flowchart

        Let us make a flowchart for calculating the area of a circle.

                                                          START





                                                      INPUT RADIUS



                                                    AREA=3.14*RADIUS
                                                         *RADIUS



                                                      DISPLAY AREA




                                                          STOP


        Advantages of Flowchart
        Advantages of a flowchart are as follows:
           • It is a better way of communication due to its graphical representation.
           • It is an effective way to solve and analyze a problem.

              282     Touchpad Artificial Intelligence (Ver. 2.0)-IX
   279   280   281   282   283   284   285   286   287   288   289