Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 77 - 2615_KEC
P. 77

    b.   Suppose you are working on a school project and need to write a program. You notice that using
                           machine language is very complex and confusing. How would high-level languages make it easier
                           for you to write and understand your program?
                         ________________________________________________________________________________

                         ________________________________________________________________________________

                        c.   Which tool would you use to plan the steps for creating a school project before starting the actual
                           work?
                         ________________________________________________________________________________

                         ________________________________________________________________________________

                                                                                                    21 st
                          LAB ACTIVITY                                                            Century   #Technology Literacy
                                                                                                   Skills
                           Visit your computer lab and perform the following actions:

                           ▶   The steps of an algorithm to calculate the interest of a bank deposit are given below. Create a
                              flowchart using the steps.

                              Step 1    Input Amount.
                              Step 2    Input Number of Years.
                              Step  3    Rate of Interest.

                              Step  4    Calculate the interest with the formula: "Interest = Amount x Years x Rate/100.”
                              Step 5    Print Interest.
                           ▶   The flowchart for an algorithm to determine the largest number among the entered numbers is
                              given below. Using it, write the algorithm.

                                                                       Start

                                                                    Input A & B

                                                     Yes                                   No
                                                                         Is

                                             Display B                                       Display A
                                                                       Stop

                           ▶   Write the algorithm for the following and then draw the flowchart.
                              a.  To check if a given number is odd or even.
                              b.  To check whether the entered number is divisible by 5 or not.

                                                                                     Algorithm, Flowchart and Mind Maps  75

| 72 73 74 75 76 77 78 79 80 81 82 |