Page 120 - TP_Prime_v2.2_Class_6
P. 120

Example 2:  Flowchart to calculate                   Example 3:  Flowchart  to  add  the  first

                                 simple interest.                                     100 natural numbers.

                                     Start                                                  Start




                             Read Principal as P                                           Sum = 0
                                  Rate as R
           Prime (Ver. 2.2)-VI  SI = (P * R * T)/100)                                       N = 0
                                  Time as T









                                                                                          N = N + 1

                                   Print SI
          118
                                                                                       Sum = Sum + N

                                      Stop


                       Flowchart to Calculate Simple Interest
                                                                                              Is
                   Example 4:  Flowchart to find the                            No        N >= 100?
                                 greatest of 3 numbers.


                                          Start                                                  Yes


                                                                                         Print Sum
                            Read the three numbers A,B,C


                                                                                             Stop

                                  No        Is       Yes
                                          A>B?                               Flowchart to add 100 Natural Numbers


                             Is       No         No        Is
                           B>C?                          A>C?
                                                                             If you could write a blog post
                         Yes                                  Yes             that would be read by every
                                                                               person in the world, what
                          Print B        Print C        Print A
                                                                              message or story would you
                                                                                         share?


                                           Stop


                       Flowchart to find the Greatest of 3 Numbers
   115   116   117   118   119   120   121   122   123   124   125