Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 59 - 2612 Digimind C6
P. 59

    DRAWING A FLOWCHART

                     Let us now learn how to draw a flowchart.

                     MAKING A CUP OF TEA                                    CALCULATING THE AREA OF A CIRCLE

                     A flowchart of making a cup of tea:                    A flowchart of calculating the area of a circle:

                                         Start                                                 Start

                                Read Kettle, Teabags,                                    Read r (radius)
                             water, milk, sugar and cup

                                                                                            Calculate
                              Boil the water in the kettle
                                                                                         Area = 3.14 × r × r

                         Pour the boiling water into the cup
                                                                                            Print Area

                              Add milk, sugar and put a
                                  teabag in the cup                                            Stop

                                     Stir the tea

                                    Tea is ready

                                         Stop

                     FINDING THE SMALLER NUMBER BETWEEN TWO NUMBERS

                     There comes a situation where we need to make a decision based on certain conditions:

                                                                    Start

                                                          Read Num1 and Num2

                                                   Yes                Is               No
                                                                Num1<Num2?

                                         Print "Num1                                    Print "Num2
                                         is less than                                      is less
                                           Num2"                                        than Num1"
                                                                    Stop

                                                                                    Algorithm, Flowcharts and Mind Maps  57

| 54 55 56 57 58 59 60 61 62 63 64 |