Page 72 - iprime_V2.2_class8
P. 72
Crack The Code
Critical Thinking
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.
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.
Computational Thinking
Write a Java program to display your Name and Roll Number on the terminal.
Write a Java program to display 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
1. Talk about various programming languages.
2. Discuss the features of Java and how they contribute to make Java a strong programming language.
3. Explain the syntax of println( ) method statement.
4. Encourage writing Java programs using simple calculations.
70 iPRIME (Ver. 2.2)–VIII

