ICSE GRADE8 Java Programming 24-25
Revision Worksheet Java Programming
1 A Company spends (20%) of their profit on Stocks, (30%) on rent, (35%) on
employees bonus. Rest of the profit for the infrastructure development of the
company. Write a program in Java to calculate and display the following:
1. Money invested on stock
2. Money spent on rent
3. Money spent on bonus
4. Money for the development
Take the profit as an input.
Page 1 of 5
ICSE GRADE8 Java Programming 24-25
2. The time period of a Simple Pendulum is given by the formula:
T = 2π√(l/g)
.Write a program in Java to calculate the time period of a Simple Pendulum by taking
length and acceleration due to gravity (g) as inputs.
Page 2 of 5
ICSE GRADE8 Java Programming 24-25
3. A wildlife researcher is monitoring birds in a forest. They need a program to record
the number of birds spotted each hour over a day. At the end of the day, the researcher
wants to know the total number of birds observed. [5]
Task:
Write a Python program to:
1. Ask the user to input the number of birds spotted each hour (use a loop).
2. Add these numbers to calculate the total number of birds.
3. Assume the day consists of 8 hours.
Finally, display the total number of birds spotted by the end of the day.
Page 3 of 5
ICSE GRADE8 Java Programming 24-25
4 A bird sanctuary offers guided tours based on the age of visitors. The
management wants a program to help decide the ticket price based on the
visitors age.
Conditions for Ticket Price:
a) Visitors aged below 5 years get free entry.
b) Visitors aged between 5 and 12 years are charged $10.
c) Visitors aged between 13 and 59 years are charged $20.
d) Visitors aged 60 years or above get a 50% discount, so the ticket costs
$10.
Task:
Write a Python program to:
1. Take the age of a visitor as input.
2. Determine the ticket price based on the given conditions.
3. Display the ticket price.
Page 4 of 5
ICSE GRADE8 Java Programming 24-25
Page 5 of 5