Category: Strings Advanced
- Write a program to print each word of a string in reverse order.
- Write a program to check if a word entered by the user is palindrome or not. A word which when reversed is the same as the original word is known as palindrome. Ex:- MOM, DAD, MADAM etc.
- Write a program to convert each lowercase letter of a string to uppercase and vice-versa. Ex:- JavA is FuN becomes jAVa IS fUn.
- Write a program to find the frequency of each letter in a sentence entered by the user.
- Write a program to enter a paragraph from the user and print each sentence on a new line without vowels.
- Write a program to enter a main string and a substring from the user. Find how many times the substring occurs in the main string. If substring does not occur even once displaythe message, "Substring
- Write a program to print the frequency of each word in a sentence entered by the user.
- Write a program to store names and marks of 50 students and display the names and marks according to the merit.
- Write a program to remove the occurrence of consecutively repeating characters in a string. Ex:- The string, "He hit the balloon 3333 times" becomes "He hit the balon 3 times".
- Write a program to print a string in reverse order in such a way that individual words are not reversed. Ex:- "Java is robust" becomes "robust is Java".