[go: up one dir, main page]

0% found this document useful (0 votes)
194 views20 pages

Icse X Assignment 2025 2026

The document outlines a series of programming assignments for Class X in Computer Applications, covering various concepts in Java. Each program focuses on different algorithms and functionalities, such as validating IMEI numbers, checking Armstrong numbers, and calculating discounts based on purchase amounts. Additionally, it includes tasks related to string manipulation, pattern printing, and sorting algorithms.

Uploaded by

joy90288
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
194 views20 pages

Icse X Assignment 2025 2026

The document outlines a series of programming assignments for Class X in Computer Applications, covering various concepts in Java. Each program focuses on different algorithms and functionalities, such as validating IMEI numbers, checking Armstrong numbers, and calculating discounts based on purchase amounts. Additionally, it includes tasks related to string manipulation, pattern printing, and sorting algorithms.

Uploaded by

joy90288
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 20

ICSE ASSIGNMENT / PROJECT Session

2025-26
(COMPUTER APPLICATION)

Class – X

Program 1:
The International Mobile Station Equipment Identity or IMEI is a number, usually unique, to
identify mobile phones, as well as some satellite phones. It is usually found printed inside the
battery compartment of the phone.

The IMEI (15 decimal digits: 14 digits plus a check digit) includes information on the origin,
model, and serial number of the device.

The IMEI is validated in three steps:

1. Starting from the right, double every other digit (e.g., 7 becomes 14).

2. Sum the digits (e.g., 14 → 1 + 4).

3. Check if the sum is divisible by 10.

For Example:
If input is IMEI = 490154203237518

Since, 60 is divisible by 10, hence the given IMEI number is Valid.

Design a program to accept a fifteen-digit number from the user and check whether it is a valid IMEI
number or not. For an invalid input, display an appropriate message.
Program 2:

Armstrong Number in Java


write a java program to check whether the given number is armstrong number or not.

Armstrong Number in Java: A positive number is called armstrong number if it is equal to


the sum of cubes of its digits for example 0, 1, 153, 370, 371, 407 etc.

Examples 1:
153 = (1*1*1)+(5*5*5)+(3*3*3)
where:
(1*1*1)=1
(5*5*5)=125
(3*3*3)=27
So:
1+125+27=153

Examples 2:

371 = (3*3*3)+(7*7*7)+(1*1*1)
where:
(3*3*3)=27
(7*7*7)=343
(1*1*1)=1
So:
27+343+1=371
Program 3:

Write a menu driven program to accept a number from the user and check whether it is a Buzz number or an
Automorphic number.

i. Automorphic number is a number, whose square's last digit(s) are equal to that number.
For example, 25 is an Automorphic number, as its square is 625 and 25 is present as the last two digits.

ii. Buzz number is a number, that ends with 7 or is divisible by 7.

1. 42 is a Buzz number because it is divisible by 7.

2. 107 is a Buzz number because it ends with 7.

3. 147 is a Buzz number because it ends with 7 and also divisible by 7.

4. 134 is not a Buzz number because it is neither end with 7 nor divisible by 7.
Program 4:

Neon Number Program In Java

Write a program in java to check whether your input number either ‘neon number’ or not.

What Is Neon Number?


A number is said to be a neon number if the sum of digits of the square of the
number is equal to the number itself.

For example:- If the input number is 9, it's square is 9*9=81 and the sum of
the digits is also 9 (= 8+1).

Neon number between 1 and 1000 are 1 and 9


Program 5:

Spy Number Program in Java


A number is said to be a spy number if the sum of all the digits is equal to
the product of all the digits.

For example:- If the input number is 1124, the sum of it's digits (1+1+2+4=8) is
the same as product of all the digits (1*1*2*4=8)

Spy numbers between 1 and 1000 are: 1 2 3 4 5 6 7 8 9 22 123 132 213 231 312
321

For example:-

= 1124

= 1+1+2+4=8

= 1*1*2*4=8

The number 1124 is a spy number because the sum of all digits and product of all
digits of represent the same result i.e. 8.

Write a program in java to check whether the input numbers either ‘Spy number’ or not.
Program 6:
Write a menu driven program in JAVA to print the following pattern through using
switch_case:

Press 1 : for Floyd's triangle

2 3

4 5 6

7 8 9 10

Press 2 : for Pyramid star pattern

Press 3 : for Inverse Right Triangle Alphabets pattern

J J J J J

E E E E

U U U

L L

Press 4 : to Exit

Create a class and use above all the menus for this program with wrong choice option
Program 7:

Java Series Programs


Using switch statement, write a menu driven program for the following:

(a) To find and display the sum of the series given below:

S = x1 - x2 + x3 - x4 + x5 - ………… - x20; where x = 2

(b) To display the series:

1, 11, 111, 1111, 11111

(c) To display the sum of the following series:

S = (1 + 2) / (1 * 2) + (1 + 2 + 3) / (1 * 2 * 3) + -------- + (1 + 2 + 3 + ----- + n ) / (1 * 2 * 3 * ------ * n)

For an incorrect option, an appropriate error message should be displayed.


Program 8:

Menu-Driven Program
Using the switch statement, write a menu driven program to:

(i) Generate and display the first ten term of the Fibonacci series
0, 1, 1, 2, 3, 5... The first two Fibonacci numbers are 0 and 1
and each subsequent number is the sum of the previous two.

(ii) Find the sum of the digit of an integer that is input:

Sample input: 15390

Sample output: Sum of the digits=18

For an incorrect choice, an appropriate incorrect message should be


displayed.
Program 9:
'Kumar Electronics' has announced the following seasonal discounts on purchase of
certain items.

Purchase Amount Discount on Laptop Discount on Desktop PC

Up to ₹ 25000 0.0% 5.0%

₹ 25,001 to ₹ 50,000 5% 7.5%

₹ 50,001 to ₹ 1,00,000 7.5% 10.0%

More than ₹ 1,00,000 10.0% 15.0%

Write a program to input name, amount of purchase and the type of purchase (`L' for
Laptop and 'D' for Desktop) by a customer. Compute and print the net amount to be paid
by a customer along with his name.
(Net amount = Amount of purchase - discount)
Program 10:

The Simple Interest (SI) and Compound Interest (CI) of a sum (P) for a given time (T) and
rate (R) can be calculated as:
(a) SI = (p * r * t) / 100

(b) CI = P * ((1 + (R / 100))T - 1)


Write a program to input sum, rate, time and type of Interest ('S' for Simple Interest and
'C' for Compound Interest). Calculate and display the sum and the interest earned.
Program 11:

Define a class called Library with the following description:

Instant variables/data members:


int acc_num - Store the accession number of the book.

String title - Stores the title of the book stores the name of the author.

Member methods :
(i) void input( ) - To input and store the accession number, title and author.

(ii) void compute( ) - To accept the number of days late, calculate and display the
fine charged at the rate of Rs. 2 per day.

(iii) void display( ) - To display the detail in the following format: Accession
number Title Author

Write a main method to create an object of the class and call the above member methods.
Program 12:

Given below is a hypothetical table showing rates of Income Tax for male citizens below
the age of 65 years:

Taxable Income (TI) in Income Tax in

Does not exceed 1,60,000 Nil


Is greater than 1,60,000 and less than or
equal to 5,00,000 ( TI – 1,60,000 ) * 10%
Is greater than 5,00,000 and less than or
equal to 8,00,000 [ (TI - 5,00,000 ) *20% ] +
34,000

Is greater than 8,00,000


[ (TI - 8,00,000 ) *30% ] +
94,000

Write a program to input the age, gender (male or female) and Taxable Income of a
person. If the age is more than 65 years or the gender is female, display “wrong
category”.
If the age is less than or equal to 65 years and the gender is male, compute and display
the Income Tax payable as per the table given above.
Program 13:

Pronic Number or Heteromecic Number


Write a Java program to check whether a number is a Pronic Number or Heteromecic
Number or not.
Pronic Number or Heteromecic Number Write a Java program to check whether a number
is a Pronic Number or Heteromecic Number or not. A pronic number is a number which is
the product of two consecutive integers, that is, a number of the form n(n + 1)

The first few pronic numbers are: 0, 2, 6, 12, 20, 30, 42, 56, 72, 90, 110, 132, 156, 182, 210,
240, 272, 306, 342, 380, 420, 462 … etc. Pictorial Presentation:
Program 14:

Menu Driven Program


Write a menu driven program to print the following patterns in Java through using switch-case
statement by following menu options.
Menu:

************************** Pattern Programs ***********************


=========================================================

Press 1: to print the following Diamond pattern

Press 2: to print following Pattern

Press 3: to print following binary digits’ pattern

1 0

1 0 1

1 0 1 0

1 0 1 0 1

Press 4: to Exit from program


Program 15:
Mr. Kumar is an LIC agent. He offers discount to his policy holders on the annual premium.
However,he also gets commission on the sum assured as per the given tariff.

Sum Assured Discount Commission

Up to 100000 5% 2%

100001 to 200000 8% 3%

200001 to 500000 10% 5%

More than 500000 15% 7.5%

Write a program to input name of the policy holder, the sum assured and the first annual premium.
Calculate the discount of the policy holder and the commission of the agent. The program displays
allthe details as:

Name of the policy holder:

Sum assured:

Premium:
Discount on the first premium:

Commission of the agent:


Program 16:

Write a program to input a string (word). Convert it into lowercase letters. Count and
print thefrequency of each alphabet present in the string. The output should be given as:

Sample Input: Alphabets

Sample Output:
==========================

Alphabet Frequency
==========================

a 2
b 1
e 1
h 1
l 1
p 1
s 1
t 1
Program 17:

Write a program in Java to accept a String in upper case and replace all the vowels present in
the String with Asterisk (*) sign.

Example:

Sample Input: "TATA STEEL IS IN JAMSHEDPUR"

Sample output: T*T* ST**L *S *N J*MSH*DP*R

INPUT : computer application

OUTPUT : C*MP*T*R *PPL*C*T**N


Program 18:
Write a program to print the initials of a name with the surname

Given a full name in the form of a string, the task is to print the initials of a name, in
short, and surname in full.
Examples:

INPUT: DEVASHISH KUMAR GUPTA


OUTPUT: D. K. GUPTA

INPUT: ISHITA BHUIYA

OUTPUT: I. BHUIYA
Program 19:
Create a java program to sort array elements using bubble sort

technique.Design a class BubbleSort with the following description

Instance variables / data members :

int arr[ ] = define the following integer array

elements.5, 3, 8, 4, 9, 2, 1, 12,
98, 16
int i = used for first looping statement
for
sorting. int j = used for second looping
statement for

sorting.

Member Methods:

Void bubbleSort(int arr[]) – perform sorting operation.

Void printArray(int arr[]) – to display all the elements after sorting.

Write a main method to create an object of the class and call the above member methods.Output
: 1, 2, 3, 4, 5, 8, 9, 12, 16, 98
Program 20:

Write a program in java to insert a new array element according to the index number as per
user’s choice in Java
Given an array arr of size n, this article tells how to insert an element x in this array arr at a specific
position pos.

You might also like