0% found this document useful (0 votes)
27 views6 pages

Computer Project CL X 2024 25

The document outlines guidelines for creating a project in Java, specifying formatting requirements, project structure, and necessary components such as a title page, table of contents, acknowledgments, computer programs, and references. It also includes a list of programming questions for Class X, covering various topics like number classification, string manipulation, and data structures. Additionally, it provides a sample acknowledgment format for expressing gratitude to those who supported the project.
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)
27 views6 pages

Computer Project CL X 2024 25

The document outlines guidelines for creating a project in Java, specifying formatting requirements, project structure, and necessary components such as a title page, table of contents, acknowledgments, computer programs, and references. It also includes a list of programming questions for Class X, covering various topics like number classification, string manipulation, and data structures. Additionally, it provides a sample acknowledgment format for expressing gratitude to those who supported the project.
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/ 6

Project Documentation Guidelines

Instruction for Project Creation:

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.

The following points are required in your project:

1. Title Page/Cover Page:

 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:

 Express gratitude to individuals who aided or supported your project, including


teachers, classmates etc.

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.

Question 5: Design a class to overload a function sumseries() as follows:


(1) void sumseries(int n , double x) - with one integer argument and one double argument to
find the display the sum of the series given below:
1 4 7 10 𝑛
𝑆𝑢𝑚 = 2 − 5 + 8 − 11 + ⋯ 𝑛
𝑥 𝑥 𝑥 𝑥 𝑥
(2) void sumseries(int start, int end)- to calculate the sum of all prime numbers in the range
between start and end.

©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.

4 5 6 Sum of even elements=4+6+2+4+2=18


5 3 2 Sum of even elements=5+5+3+5=18
4 2 5

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:

13 2 23 4 The highest value in the array is :120


52 61 71 18 The smallest value in the array is : 2
95 100 110 120
13 41 15 16

Question 19: A book seller maintains records of books belonging to the various publishers. He uses a
class with the specifications given below:

Class name Stock


Data Members
String title To store the title of the book
String author To store the author name of the book
String pub To store the publisher of the book
int noc To store the number of copies of the book
Member Functions
Stock() Default constructor to initialize all the data
members.
void getdata() To accept title, author, publisher’s name and the
number of copies.

©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:

Class name SmartShop


Data Members
String name To store the name of the item purchased
double price To store the price of the item purchased
double netamount To store the netamount paid by the customer after
the discount.
Member Functions
SmartShop() Default constructor to initialize name= “ “ and
price=0.0
void accept() To input the name and the price of the item using
the method of Scanner class
void calculate() To calculate the net amount to be paid by the
customer, based on the following criteria:
Price Discount
Upto 15000 5.0%`
15001 – 25000 8%
25001 – 50000 10%
More than 50000 12%
void display() To display the details in the given format
Item Name Item Price Net Amount
xxxxxx xxxxxx xxxxxx
Define a class SmartShope with the above specifications and write the main method to create an
object of the class and call the above member methods.

©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.

First and foremost, I want to extend my sincere thanks to my Computer Teacher,


Mr. Noor Islam Khan. Your expertise, encouragement, and willingness to answer my
questions have been invaluable throughout this project. Your dedication to teaching and
your passion for the subject have inspired me to delve deeper into the world of computer
science.

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

You might also like