Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 66 - 2612 Digimind C6
P. 66

    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.
                                                                                            Start
                          ▶  The  flowchart  for  an algorithm  to
                             determine  the largest number among                         Input A & B
                             the entered  numbers is given below.
                             Using it, write the algorithm.
                                                                                Yes                      No
                          ▶   Write the algorithm for the following and                       Is
                             then draw the flowchart:
                                                                         Display B                         Display A
                             (a)   To check if a given number is odd or                     Stop
                                 even.

                             (b)   To check whether the entered number is divisible by 5 or not.

                               COding Zone       COding Zone    {}      =     COding Zone #Communication
                                     {C ding z ne}
                                                                                                    21 st
                                                                                                  Century
                                                                                                   Skills
                                                                               </>
                          Following is an algorithm to accept the age of a person and check whether he/she is eligible to
                          vote or not. A person can only vote if he/she is 18 years old or more. Number the steps of the
                          algorithm in the correct order.
                               Accept the age of the person.

                               Stop.
                               If age is greater than or equal to 18, then display, ‘You are eligible to vote’.
                               Start.

                               If age is less than 18, then display, ‘You are not eligible to vote’.

                          FOR THE TEACHER
                        1.   Discuss with the students about the development of machine/assembly languages, then 3rd generation procedural
                          languages like C to object-oriented languages like Java.
                        2.   Assign the task of making algorithms and flowcharts based on real-life situations to help students understand the
                          concepts easily.

                       64   Premium Edition-VI

| 61 62 63 64 65 66 67 68 69 70 71 |