Computer Project CL X 2024 25
Computer Project CL X 2024 25
1. All of the programs are written in the Java programming language only.
2. Use A4 size white paper.
3. Start by writing the question (program), followed by the Java program code, and
conclude with variable descriptions.
4. Use a font size should not be less than 12 or greater than 12; avoid fancy fonts.
5. Handwritten project will not be accepted; only computer generated project will be
accepted.
6. Start a new program on a fresh sheet, avoiding the continuation of a new program
from the old sheet where your previous program ends.
7. Employ an A4 transparent office file for the project.
Project title
Your name
Date of submission
School name and class/section details
2. Table of Contents:
A list of sections and their respective page numbers for easy navigation.
3. Acknowledgment:
4. Computer Programs
5. References:
Cite any sources, books, or websites you utilized for your project.
Make sure to follow these guidelines while preparing your project documentation.
©NIK_2024
PROGRAMMING QUESTIONS FOR PROJECT WORK- 2024-25
CLASS – X
Question 1: Define a class to accept a number and check whether it is a SUPERSPY number or not.
(A number is called SUPRSPY if the sum of the digits equals the number of the digits.)
Example1:
Input: 1021
Output: SUPERSPY number [Sum of the digits= 1+0+2+1=4, Number of Digits=4]
Example2:
Input: 125
Output: Not an SUPERSPY number [Sum of the digits=1+2+5=8, Number of digits=3]
Question 2: Define a class to accept a 3 digit number and check whether it is a duck number or not.
Note: A number is a duck number if it has zero in it
Example1:
Input: 2083
Output: Invalid
Example 2:
Input: 103
Output: Duck number
Question 3: Write a menu driven class (using switch case) to perform the following:
(i) Input a Binary number (base 2) and convert it into its decimal equivalent (base 10).
Sample Input: (110011)2
Sample Output: (51)10
(ii) Input a Decimal number (base 10) and convert it into its Binary equivalent (base 2)
Sample Input: (35)10
Sample Output: (100011)2
Question 4: A number is said to be Special Armstrong if sum of its digits raised to the power of
length of the number is equal to the number e.g.
371=33+73+13=371
1634=14+64+34+44=1634
Thus 371 and 1634 are all examples of special Armstrong numbers.
Write a program to generate and print all the Special Armstrong numbers between 500 and 2000.
©NIK_2024
Question 6: Design a class to overload a function joystring() as follows:
(1) void joystring(String s) with one string argument in lowercase, change the first letter of
every word to uppercase. Display the new string.
Sample Input: cloud computing means internet based computing
Output: Cloud Computing Means Internet Based Computing
(2) void joystring(String str, int p) with one string argument and one integer argument. It
displays all the uppercase character if p is 1(one) otherwise it displays all the lowercase
characters.
Question 7: Write a menu driven program to print the given pattern accosting to the user’s choice.
(i) 1 (ii) A B C D E
** A B C D
23 A B C
*** A B
4 5 6 A
Question 8: Write a program to input a sentence and display the word in the sentence that contains
the maximum number of characters.
Input: Enter the sentence: Best of Luck for your Examination
Output:The word with the maximum characters is: Examination
Question 9: Define a class to accept a string and convert the same to uppercase, create and display
the new string by replacing each vowel by immediate next character and every consonant by the
previous character. The other characters remain the same.
Input: Enter the sentence: $EXAMINATION_2025
Output: $FWBLJMBSPM_2025
Question 10: Write a program in Java to accept a sentence and a word separately. Find and print the
frequency of the given word in the sentence:
Input: Taj Mahal is one of the seven wonders of the words
Frequency of the word to be searched: the
Output: The frequency of the word the is: 2
Question 11: Write a program to input a sentence in uppercase. Display the words which begin and
ends with a same character.
Sample Input: Enter the sentence: Stars shine bright at night sometimes
Output: Stars, sometimes
Question 12: Define a class to accept the names of 20 students in a one-dimensional array. Sort the
names in ascending order using the Bubble sort technique, and display the students' names in
sorted order.
Question 13: Define a class to accept the marks secured in “Computer Applications” by 20 students
of a class in a single dimensional array. Sort the marks obtained in descending order using Selection
sort technique, and display the marks of students in sorted order.
©NIK_2024
Question 14: Write a program to search for an integer value input by the user in the sorted list given
below using Binary search technique. If found display “Search successful” and the element,
otherwise display “Search Unsuccessful”
{31, 36, 45, 48, 50, 51, 67, 78, 89, 90}
Question 15: Define a class to accept values into 4×4 array and find and display the sum of each row.
1 2 3 4 The Sum of row 1 :10
5 6 7 8 The Sum of row 2 :26
9 10 11 12 The Sum of row 3 :42
13 14 15 16 The Sum of row 4 :58
Question 16: Define a class to accept the names of 10 students in an array and check for the
existence of the given name in the array using “Linear search technique”, if found print the position
of the name, if not found print the appropriate message. Also print the names which begins with the
word “Mr”
Question 17: Define a class to accept values into a 3×3 array and check if it is a special array. An
array is a special array if the sum of the even elements = sum of the odd elements.
Question 18: Write a program to store the numbers in 4×4 array in double dimensional array and
display the largest and the smallest value within the array.
Example: Input: Output:
Question 19: A book seller maintains records of books belonging to the various publishers. He uses a
class with the specifications given below:
©NIK_2024
void purchase(String t, String a, String p, int n) To check the existence of the book by comparing
title, author’s and publisher’s name. Also check
whether number of noc>=n. If yes, maintain the
balance noc-n, otherwise the message “book is
not available or stock is under flowing”
Define a class Stock with the above specifications and write the main method to create an object of
the class and call the above member methods.
Question 20: Define a class SmartShop with the specifications given below:
©NIK_2024
ACKNOWLEDGEMENT
(SAMPLE - FORMAT)
I would like to take this opportunity to express my heartfelt appreciation to
everyone who contributed to the successful completion of my computer project. This
project has been a significant learning experience for me, and I am grateful for the support
and guidance I have received along the way.
I would also like to acknowledge the role of our school principal, Fr. Olwin J.Moras.
Your leadership and vision have created an educational environment that encourages
students to pursue their interests and excel in their chosen fields. Your support for our
endeavors has been a driving force behind our success.
While this project was an individual effort, the collective support of my teacher and
principal, along with the encouragement from my loved ones, has made it possible. I am
grateful to each and every one of you for being a part of my journey and for helping me
achieve this milestone.
Thank you.
[Student’s Name]
©NIK_2024