10 Computer Project 2024-25
10 Computer Project 2024-25
COMPUTER APPLICATIONS
CLASS: X Date of Submission: 30-09-2024
Project Work:
Students are required to write a record on Java programs.
Each program should be written using Variable descriptions,
Mnemonic codes and output.
Note: Flow-Charts and Algorithms are not required.
Java Programs:
1. Design a class to overload a function SumSeries() as follows:
i) Void SumSeries(int n, double x)- with one integer argument and one double
argument to find and display the sum of the series given below:
𝒙 𝒙 𝒙 𝒙 𝒙
S= + + + + … … … . 𝒕𝒐 𝒏 𝒕𝒆𝒓𝒎𝒔
𝟏 𝟐 𝟑 𝟒 𝟓
ii) Void SumSeries()- to find and display the sum of the following series:
S=1+(1 X 2)+(1 X 2 X 3)+…………+(1 X 2 X 3……….X 20)
(Ref. Page no.106, Program 5.12)
2. Write a program to accept a two-digit number. Add the sum of its digits to the
product of its digits. If the value is equal to the input number, display the message
“Special 2-digit number”; otherwise, display the message “Not a Special 2-digit
number”. (Ref. Page no.171, Program 8.11)
7. Write a program that shows the java implementation of the Selection sort algorithm.
(Ref. Page no. 379)
8. Write a menu driven program to display the pattern as per user’s choice:
i) write a program to display the following pattern.
(Ref. Page no.279, Program 10.18)
@@@@@@@@7
@@@@@@@6
@@@@@5
@@@@4
@@@3
@@2
@1
0
iii) Write a program to display the given pattern for a string input.
(Ref. Page no.420, Program 15.24)
Sample Input: SCHOOL
Sample Output:
SCHOOL
SCHOO
SCHO
SCH
SC
S
13. Write a program to accept a word and convert into lowercase if it is in uppercase, and
display the new word by replacing only the vowels with the character following it.
Sample input: computer
Sample output: cpmpvtfr (Ref. Page no. 429 Program- 15.32)
16. Write a program to input two words and check whether they are Anagrams or not.
[Ex: CAT and ACT are Anagrams]
17.Define class to accept a 3 digit number and check whether it is a duck number or
not.
[Hint: A number is a duck number if it has Zero in it
Ex 1: Input : 2083
Output: Invalid
Ex 2: Input : 103
Output: Duck number]
18. Define a class to accept the gmail id and check for its validity.
A gmail id is valid only if it has:
➢ @
➢ .(dot)
➢ gmail
➢ Com
Example: icse2024@gmail.com is a valid gmail id.
19. Define a class to accept values in integer array of size 10. Find sum of one digit number
and sum of two digit numbers entered. Display them separately.
Ex: Input: a[] = {2,12,4,9,18,25,3,32,20,1}
Output: Sum of one digit numbers: 2+4+9+3+1=19
Sum of two digit numbers: 12+18+25+32+20=107
20. i) Write a program to print the square of each digit of the given number.
[Ex: n=4329
Output- 3.0
1.414213562
1.732050808
2.0]
ii) Write a program to check whether the number is a lead number. A lead number is the
one whose sum of even digits are equal to sum of odd digits.
[Ex: 3669 odd digits sum= 3+9=12
Even digit sum= 6+6=12
3669 is a lead number.]
******************************************************************