Page 442 - CA_Blue( J )_Class10
P. 442

8.  Write a program to input a string and convert to uppercase and print the frequency of each letter in the string.
                    Input: India New Delhi
                    Output: INDIA NEW DELHI
                    Character        No. of times
                    A                1
                    D                2
                    E                2
                    H                1
                    I                3
                    L                1
                    N                2
                    W                1

                  9.  Write a program to input a sentence and print the word with largest number of vowels.
                    Input: I AM STUDYING COMPUTER APPLICATIONS
                    Output: APPLICATIONS
                 10.  Write a program to input a string and print the words in the following manner:
                    Input: India is great
                    Output: aidnI si tearg
                 11.  Write a program where the following sentence is replaced by certain words and print the new sentence.
                    Every person had a star, every star had a friend.
                    Replace star with moon.
                    Every person had a moon, every moon had a friend.
                 12.  Write a program to input a word and print whether it is a unique word or not.
                    Input: sky
                    Output: sky is a unique word.
                 13.  Write a program to input a word and replace all the vowels in the word with the next character alphabetically.
                    Input: Kolkata
                    Output: Kplkbtb
                 14.  Write a program to input a sentence and create a new sentence by removing all the vowels and digits from the sentence.
                    Input: Pincode of Sodepur is Kolkata – 700115
                    Output: Pncd f Sdpr s Klkt –
                 15.  Consider the following sentence "India is my country". Replace the word "my" with "our". Print the new sentence "India is our country".
                 16.  Write a program to input a sentence and print the repeated words in the sentence.
                    Input: NEXT TIME THERE WON'T BE A NEXT TIME.
                    Output: The repeated words are NEXT, TIME
                 17.  Write a Java Program to print smallest and biggest possible palindrome word in a given string.
                    "MOM AND MADAM BOTH CAN SPEAK MALAYALAM"
                    Smallest palindromic word: MOM
                    Largest palindromic word: MALAYALAM
                 18.  Write a program to input a sentence and print those words that starts and ends with the same letter.
                 19.  Create an array with five given city names and print those name that begins with consonants and end with vowels.
                    DELHI, KOLKATA, JAMSHEDPUR, LUCKNOW, PATNA
                    Output  :           DELHI
                                        KOLKTA
                                        PATNA
                 20.  Write a program to create a single-dimensional array of size 10 containing 10 names and print the names in alphabetical order.
                 21.  Write a program to accept a word and print the following pattern:
                    Input: JAVA
                    a.  JAVA                                        b.  J




                440440  Touchpad Computer Applications-X
   437   438   439   440   441   442   443   444   445   446   447