Page 94 - iPlus_Ver_2.0_class_8
P. 94
#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.
3. Explain the use of jumping statements to the students.
92
iPlus (Ver. 2.0)-VIII

