Page 97 - iprime_V2.2_class8
P. 97
SDG Activity
Conduct a survey to identify male-to-female ratios among teaching staff,
students, and housekeeping staff at your school. Use Java to analyse the
data and display result. Then, suggest three different ways to promote
gender equality in your school based on your findings.
Computational Thinking
Write a Java program by using a '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 given 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 various conditional statements of Java.
2. Discuss the use of loop statements of Java.
3. Explain the use of jump statements.
Conditional, Loop and Jump Statements in Java 95

