Page 97 - Trackpad_ipro 4.1_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.
#Coding & Computational Thinking
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.
Conditional, Looping and Jumping Statements in Java 95

