Page 73 - TP_iPlus_V2.1_Class8
P. 73

SDG Activity




                    Create a program to track agricultural production and consumption, calculating
                    yearly  wastage  by subtracting consumption from production.  The program
                    will loop through annual data and display the results.




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


                   Guess! Who am I?
                    1.   I am an object-oriented programming language developed by Sun Microsystems.         .............
                    2.   I am an operator used to check the equality between two values.                     .............
                    3.   I am a memory location used to store a value.                                       .............
                    4.   I am a reserved word that cannot be used as the name of a variable.                 .............
                    5.   I am a data type in Java, used to store character values.                           .............
                    6.   I am a text written inside a code for better understanding of the code.             .............
                    7.   I am the statement used to display the output of a program on the terminal.         .............



                                                                                              #Experiential Learning
                     Let’s Explore


                            Surf the Internet and find out more uses of Java.



                                                                                        #Coding & Computational Thinking
                                                                                        #Creativity & Innovativeness


                        Practical Time


                      Write a Java program to display your Name and Roll Number on the terminal.
                     Write a Java program to display the names of five students in separate lines.
                     Write a Java program to calculate the sum of marks in 5 subjects.
                      Write a Java program to calculate simple interest. SI = (P * r * t ) / 100 where P is for the
                      principal amount, r is for  the rate of interest, and t is for time duration. Take all the values from
                      the user.
                      Write a Java program to take the basic salary of an employee as input from the user and
                      calculate the net salary based on the criteria given below:
                        Net salary = basic salary + incentive
                        Incentive = 7 % of the basic salary

                     Teacher’s Corner


                 1.  Talk about the various programming languages.
                 2.  Discuss the features of Java and how they contribute to make Java a strong programming language.


                                                                                                                  71
                                                                                               Program Coding
   68   69   70   71   72   73   74   75   76   77   78