Page 88 - TP_Play_V2.1_class6
P. 88

Rules to Draw Flowcharts                                                            Start

                  You must follow these basic rules while drawing a flowchart:

                       Maintain the direction of the flow from left to right or top to        Read P for Principal
                     bottom.
                                                                                                       r for rate
                       Only one flow line should come out from a process box.                          t for time
                       Only one flow line should enter a decision box, but two flow
                     lines should leave the decision box.
                                                                                               Calculate
                       Ensure that the flowchart has a logical start and end.
                                                                                               SI = (P * r * t)/100

                  Look at the flowchart to calculate simple interest.

                           Tech Funda                                                                Print SI



                        Flowcharts were originally used in businesses in the 1920s                    Stop
                        to  improve  efficiency.  They  helped  companies  visualise
                        workflows and identify bottlenecks or unnecessary steps,
                        making it easier to streamline their operations.






                       SOLVING PROBLEMS USING ALGORITHMS AND
                     FLOWCHARTS

                  Some examples are given below to solve the problems using algorithms and flowcharts:

                  Example 1: Write an algorithm and draw a flowchart to check whether a given number is
                  even or odd.

                                  Algorithm:                                         Flowchart:
                  Step 1  Start.                                          Start
                  Step 2  Read Number.

                  Step 3  Check If Number % 2 == 0 Then             Read a Number
                           print "Number is even."

                           Else                                            Is
                                                                                        Yes
                           print "Number is odd."                  Number%2==0?               Print Number is even
                  Step 4  Stop.
                                                                             No

                                                                  Print Number is odd




                                                                          Stop



                   86       Play (Ver. 2.1)-VI
   83   84   85   86   87   88   89   90   91   92   93