Page 271 - AI Ver 1.0 Class 9
P. 271

Flowcharts

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

                                                                                Introduction to Python  269
   266   267   268   269   270   271   272   273   274   275   276