Page 221 - Ai_V1.0_Class9
P. 221

Step 3   Area=3.14*radius*radius
                    Step 4   Display Area
                    Step 5   Stop


                          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

                 The advantages of a flowchart are as follows:
                    • It is a better way of communication due to its graphical representation.


                                                                                        Introduction to Python  219
   216   217   218   219   220   221   222   223   224   225   226