Page 133 - Computer - 5
P. 133

Computational Skills
            Mind Stretching
           1. Write an algorithm and draw a flowchart for the following:

                 (a)  To calculate and print the area and perimeter of a rectangle.

                (b)  To shut down a computer.
                 (c)  To print all odd numbers from 1 to 30.

                (d)  To input marks of a student in five subjects and display the total and average
                     marks.

            2.    Write  the  output  of  the  given                  3.    Given below is a flowchart to add

                flowchart if the starting values of A                      numbers from 1 to 20. Identify
                and C are 20 and 2 respectively.                           the errors in the flowchart and
                                                                           draw the correct flowchart.
                                Start
                                                                                         Start

                             Read A & C
                                                                                    Sum = 0, N = 1

                              A = A × C
                                                                                    Sum = Sum + N

                               C = C + 2

                                                                                       N = N + 1
                                  Is        No
                               C > 10?
                                                                                                    No
                                   Yes                                                Is N > 20?
                                                                                            Yes
                                Print A
                                                                                      Print Sum

                                 Stop
                                                                                         Stop




            DISCUSS                                                                                Communication Skills
            DISCUSS

             Can a flowchart be drawn without writing an algorithm? Discuss with your classmates.



           TEACHER’S DESK
           TEACHER’S DESK

            Explain to the students the concept of decision making and loops in flowcharts with examples.




                                                                                                             131
   128   129   130   131   132   133   134   135   136   137   138