Page 364 - Ai_417_V3.0_C9_Flipbook
P. 364

Step 2   N=2
                 Step 3   If N <= 20 goto Step 4 else goto Step 7

                 Step 4   Display N
                 Step 5   N=N+2
                 Step 6   Goto Step 3
                 Step 7   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


                    362     Touchpad Artificial Intelligence (Ver. 3.0)-IX
   359   360   361   362   363   364   365   366   367   368   369