Page 80 - Viva ICSE Computer Studies 8 : E-book
P. 80

6                 Decision Control Structure















                       Learning Outcomes
                                                                                              Let’s Learn About
                    Students will be able to
                                                                                         •  Selec  on Control Structure
                    •  identify the fl ow of control in selection statements.
                                                                                         •  Looping Control Structure
                    •  design a program with appropriate selection statements.











                         Activity Corner

                      1.  In our daily life, we make decisions using our _______________.
                          (a) brain                         (b) computer                     (c) mobile

                      2.  Can you perform the task of cooking 15 times a day?

                          Yes               No

                      When we are executing programs, there are times that we want to change the order of execution of
                      program statements, or to repeat a particular set of statements. For these kind of conditions, we need to
                      take logical decisions. In our day-to-day life, any decision we make depends on various conditions.



                    In our day-to-day life, we make decisions and act accordingly. Similarly, a computer also decides
                    about its actions before making decisions. Every decision involves a choice based on a simple
                    Yes or No. To implement this, control structures are used.

                    In control structures, the conditions are specifi c and as per these conditions actions take place.
                    Now let’s learn more about control structures.
                    Java consists of three conditional control structures. They are as follows.

                      •  Selection Control Structure
                      •  Looping Control Structure
                      •  Jumping Control Structure

                    In this chapter we will only study about selection control structure and looping control
                    structure. Jumping control structure will be studied in higher classes.



                     68
   75   76   77   78   79   80   81   82   83   84   85