Page 126 - Computer - 5
P. 126

5.  Only one flow line should go in a decision box, but two flow lines, one for each

                  possible answer, should come out from the decision box.

            6.  Two flowlines cannot intersect each other in a flowchart.
          Let us consider an example to understand flowcharts.

          Example 3: Write an algorithm and draw a flowchart to get ready for school.
















                        Step 1                              Step 2                              Step 3
                       Wake up.                          Take a bath.                       Wear uniform.



















                                Step 4                                                Step 5
                           Have breakfast.                                    Board the school bus.




                             Algorithm                                             Flowchart

           Step 1: Wake up.                                                              Start

                                                                                       Wake up
           Step 2: Take a bath.

                                                                                      Take a bath
           Step 3: Wear uniform.                                                    Wear uniform



           Step 4: Have breakfast.                                                  Have breakfast
                                                                                 Board the school bus
           Step 5: Board the school bus.                                                 Stop




              124
   121   122   123   124   125   126   127   128   129   130   131