ST.
THOMAS’ CHURCH SCHOOL, HOWRAH
COMPUTER PROJECT
ANNUAL TERM 2024 - 2025
CLASS IX (A and B)
1. A teacher prepares the statistics of 100 students in a school exam on the
subject Computer Applications as follows:
Range No. Of students
Above 90 xx
81 – 90 xx
60 – 80 xx
Below 60 xx
Define a class to accept the marks of 100 students and print the statistics
as mentioned above.
2. (a) Define a class to print the Floyds triangle of given rows using nested
loops only.
Example:
A Floyd triangle of 6 rows is
1
23
456
7 8 9 10
11 12 13 14 15
16 17 18 19 20 21
(b) Define a class to print the sum of the following series:
1 * (1+2) * (1+2+3) * .......... * (1+2+3……20)
3. The BHDB company offer EMI (Equated Monthly Instalments) based
loans for the purchase of electronic devices based on the purchase amount
the rate of interest is offered as follows:
Purchase amount less than Rs.20000, rate of interest is 12% otherwise the
rate of interest is 15%.
Amount with interest for the specified number of years is calculated using
the formula Amount = p(1+r/100)^n Where p is the purchase amount, r is
the rate of interest, n is the number of years.
After the amount is calculated it is converted into EMI by dividing the
amount by the number of months of the tenure, which has to be a whole
number rounded off to the nearest integer.
Print the details as follows:
Purchase amount:
Rate of interest:
Amount with interest:
EMI:
Define a class to accept the purchase amount and the number of years of
the tenure, calculate and print the details as per the above specifications.
4. Write a program to print the first 15 terms of Tribonacci series 0 0 1 1 2 4
7 13 24 ……….
A Tribonacci series is a sequence of numbers where each term is the sum
of the three previous terms.
5. Write a program to accept N integer numbers and print the numbers which
are perfect.
A perfect number is a positive integer that is equal to the sum of its
positive proper divisors, excluding the number itself. For example, the
number 6 has divisors 1, 2, and 3, and 1 + 2 + 3 = 6, making it a perfect
number1. The first few perfect numbers are 6, 28, 496, and 812.
6. An Emrip number is a number which is prime backwards and forward.
Example: 13 and 31 are both prime numbers. Thus 13 is an Emrip number.
Write a program to accept any 10 integer numbers and print the Emrip
numbers only.
7. Using switch statement, write a menu driven program for the following:
(i) To find and display the sum of the series given below:
S = x1 − x2 + x3 − x4 + x5. . . . . . . . . . . . . . . .. − x20
( where x = 2)
(ii) To display the following series:
1 11 111 1111 11111 111111
For an incorrect option, an appropriate error message should be displayed.
8. Write a program to find the smallest and largest digit in an integer number
that is input.
Sample: 65324
Sample Output: Smallest digit = 2
Largest digit = 6
---------------------------------------------------
• Use Laboratory note book
• Use blue or black ink
• Write only programs
• Submission Date: 20 January 2025