Project of Computer Science For Class XII First Selection (2024 - 2025)
Project of Computer Science For Class XII First Selection (2024 - 2025)
Submission of First Selection Assignment / Project Work for Class XII ( ISC )
2024 - 2025
Computer Science (Practical Files / Assignments / Projects Work)
Project 12.
Design a class Change to perform string related operations. The details of the class are
given below:
Member functions:
char caseconvert (char ch): converts the case of the character and returns it
void recchange (int): extracts characters using recursive technique and changes its
case using caseconvert () and forms a new word
Specify the class Change, giving details of the Constructor ( ), and member functions
void inputword (), char caseconvert (char ch), void recchange (int) and void display ().
Define the main () function to create an object and call the functions accordingly to
enable the above change in the given word.
Project 13.
Input a paragraph containing ‘n’ number of sentences where (1 = < n < 4). The words
are to be separated with a single blank space and are in UPPERCASE. A sentence may
be terminated either with a full stop ‘.’ Or a question mark ‘?’ only. Any other character
may be ignored. Perform the following operations:
(i) Accept the number of sentences. If the number of sentences exceeds the limit, an
appropriate error message must be displayed.
(iii) Display the words in ascending order of their frequency. Words with same frequency
may appear in any order.
Example 1
Enter sentences.
TO BE OR NOT TO BE.
OUTPUT:
WORD FREQUENCY
OR 1
NOT 1
TO 2
BE 2
Example 2
Enter sentences.
OUTPUT:
WORD FREQUENCY
A 1
STRING 1
PROGRAM 1
EASY 1
YES 1
IT 1
THIS 2
IS 3
Example 3
OUTPUT:
INVALID ENTRY
Project 14.
A palindrome is a word that may be read the same way in either direction. Accept
a sentence in UPPER CASE which is terminated by either “.”, “?”, or “!”. Each
word of the sentence is separated by a single blank space.
Perform the following tasks:
a) Display the count of palindromic words in the sentence.
b) Display the palindromic words in the sentence.
Test your program with the sample data and some random data:
Example 1
INPUT : MOM AND DAD ARE COMING AT NOON.
Example 2
Project 15.
Test your program for the following data and some random data:
Example 1
INPUT : M = 3
4 16 12
8 2 14
6 1 3
OUTPUT :
ORIGINAL MATRIX
4 16 12
8 2 14
6 1 3
12 16 4
14 2 8
3 1 6
Example 2
INPUT : M = 22