Page 50 - Computer Genius Class 07
P. 50

An algorithm is a set of steps in a sequential manner to solve a problem or to complete a task.
                  These steps are the foundation to a program. They are important to programming as recipes are for
                  cooking.
                  An algorithm can be represented in two ways, Flowcharts and Pseudocodes. In this chapter we will
                  learn a out the  o charts.


                  Flowchart
                  A   o chart  is  a  diagrammatic  representation  o   the  step  y step  plan  that  is  supposed  to   e
                  followed, for solving a task/problem statement.
                  This diagrammatic representation is made up of shapes like boxes, circles, diamonds, parallelograms,
                  ellipses connected by arrows. Each shape acts as a step in the solution, and the arrows represent the
                  direction o   o  among the steps.



                                               Lamp doesn't work




                                                     Lamp           No
                                                  plugged in?                Plug in lamp


                                                         Yes


                                                      Bulb          No
                                                  burned out?                Repair lamp


                                                         Yes

                                                  Replace bulb






                           When we search anything on Google, it gives us result based on an algorithm
                           written for it.





                  Advantages of Flowchart

                  Follo ing are the ad antages o   o chart
                  l    Effective Communication: Flowcharts are better way of communicating the logic of the system.

                  l   Effective Analysis: Using flowchart problem can be analysed more efficiently.

                  l   Efficient Coding: The flowcharts are very useful during program development phase.






                       48    Computer Genius-VII
   45   46   47   48   49   50   51   52   53   54   55