Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 74 - 2607_Trackpad_Pro_5.1_flipbook_C6
P. 74

    b.   Anaya was preparing a dish by following stepwise instructions from a cooking book. Which concept
                            of programming is being used here?
                          ___________________________________________________________________

                         c.   Richa wants to draw a flowchart to find the smallest of the four given numbers. Is it advisable to
                            directly make the flowchart or should she make something else before drawing the flowchart?
                          ___________________________________________________________________

                          LAB ACTIVITY                                                                      Interdisciplinary

                          Visit your computer lab and perform the following actions:
                          ▶  Draw the flowchart:
                             (a)  To calculate the factorial of a number
                             (b)  To check if a given number is odd or even
                          ▶  Write an algorithm:
                             (a)  To determine the largest number among the three numbers
                             (b)  To calculate the simple interest
                          ▶  Write an algorithm to convert the temperature from Fahrenheit to celsius.
                          ▶  Draw a flowchart to input two sides of a rectangle and display whether it is a square or not.

                                                                                                               Creativity
                       FUN ACTIVITY

                        Take a chart paper and draw all the symbols used while creating a flowchart. Also, mention the
                        names and the use of each symbol.

                                                                                                    Computational Thinking
                              COding Zone       COding Zone     {}      =     COding Zone                COding Zone []
                                     {C ding z ne}
                                                                              </>
                          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
                        Discuss with the students about the development of machine/assembly languages, then 3rd generation procedural
                        languages like C to object-oriented languages like Java.

                       72   Premium Edition-VI

| 69 70 71 72 73 74 75 76 77 78 79 |