Page 97 - TP_iPlus_V2.1_Class8
P. 97

#Problem Solving & Logical Reasoning
                          Crack The Code                                          #Digital Literacy


                   Find the nine terms related to Java statements and errors.

                                                C   O   N   T    I  N   U    E   L   L
                                                O   V   D   E   F   A   U    L   T   T
                                                N   H   L   U    I   F  D    R   M   I

                                                D   I   O   E   R   R   O    R   G   T
                                                I   N   O   R   B   R    E   A   K   E

                                                T   T   P   L   E   O    I   H   R   R
                                                I   E    I   I  P    L  H    E   A   A
                                                O   R   N   S   W    I   T   C   H   T

                                                N   F   G   U   N    I   X   G   I   I
                                                A   A   N   X   R    E   S   G   O   O

                                                L   J   U   M   P    I  N    G   N   N


                                                                                  #Experiential Learning
                    Let’s Explore



                           Browse the Internet and find out about some common errors of Java program.




                                                                                  #Digital Literacy
                                                                                  #Coding & Computational Thinking

                        Practical Time


                      Write a Java program by using the switch statement to display month name according to the

                      number of the month.
                       Write a Java program to display the first 10 natural numbers.
                       Write a Java program to calculate the sum of squares of the first 5 numbers.
                       Write a program to input a number and check if the number is zero, positive, or negative using
                      the if….else…if statement.
                       Write a program to find the greatest among the three numbers.
                       Write a Java program to reverse the digits of a four-digit number.
                       Write a Java program to check whether a given number is a palindrome or not.
                       Write a Java program to check whether a given number is an armstrong or not.


                     Teacher’s Corner


                 1.   Talk about the various conditional statements of Java.
                 2.  Discuss the use of looping statements of Java with the students.


                                                                                                                  95
                                                                 Conditional, Looping and Jump Statements in Java
   92   93   94   95   96   97   98   99   100   101   102