Professional Documents
Culture Documents
Class 10 Science/commerce Computer Application External Project
Class 10 Science/commerce Computer Application External Project
1
17.Write a java program to accept a sentence and count frequency of
double occurrence of characters.
E.g. “She is feeding the rabbit with carrot.” Output-3
18.Write a java program to accept a sentence and count frequency of
consecutively occuring characters.
E.g. “Absolute exam stress has just started.” Output-3
19.Write a java program to accept two words and check if they are
Anagram words or not.
Two words are called Anagram if the consist of same letter but not in
same sequence.
E.g.- Smile-Miles, Listen-Silent
20.Write a program to enter a sentence and print its largest word.
21.Write a program to enter a sentence and capitalize first character of
each word.
22.Write a program to enter a sentence and print frequency of each
character.
23.Write a program to enter a sentence and count total number of
uppercase and lowercase characters.
24.Write a program to enter a word and convert it into Piglatin form.
In Piglatin form the word starts with the first vowel of the word followed by
characters before the first vowel and “AY”. The whole new word is
capitalized.
E.g. “Children” Output-ILDRENCHAY
25.Write a program to enter a sentence and swap its first and last word.
E.g. “Hello friends how are you.”
Output: “You friends how are hello”
26.Write a program to enter a word and check if it is a special word or not.
(A word is special if it starts and ends with same letter.)
27.Write a program to enter n numbers in an integer array and find sum
and average of all even and all odd numbers separately.
2
28.Write a program to enter n numbers in an integer array and store thenm
in another array in reverse order.
29.Write a program to enter n numbers each in two different same sized
array. Store the sum of every corresponding value in a third array.
31-34 Write a program to enter n numbers in an int array and sort them in
ascending/descending order using selection/bubble sort.
4
Affiliated to the CISCE, New Delhi