String Programs
Accept a string and print them in Vertical way.
Accept a string and print in reverse vertical.
Accept a string and find the number of letter 'a' present the string.
Accept a string and find the number of words.
Accept a string and find the number of letters, words, and number of sentences.
Accept a string and print each word in a New Line.
Accept a string and find the number of vowels present the string.
Accept a string and print the string excluding vowels.
Accept a string and find the character, which is given by user, is in the string or not.
Accept a string and find occurrence of the character, which is given by user.
Accept a string and find occurrence of double letters in the string. (Apple)
Accept a string and make all vowels in Capital.
Accept a string and every alternate letters in Capital.
Accept a string and each words first letter in Capital.
Accept a string and each words last letter in Capital.
Accept a string and find position of letter 'a' in the string.
Accept a string and find the first occurrence of letter 'a' in the string.
Accept a string and find the last occurrence of letter 'a' in the string.
Accept a string and replace the letter 'o' with '*' print the String. [Input: Sherwood Public School] [Output: Sherw**d Public Sch**l]
Accept a string and find the length of longest word in the string.
Accept a string and find and print the longest word in the string.
Accept a string and print the smallest and longest words.
Accept a string and Reverse the case (if it finds capital letters make it small letters and vice versa).
Accept a name with surname and print the Initials.
Accept a name with surname and print the Initials with surname
Accept name with surname and print the surname first and then Initials.
Accept a string and check whether the word is palindrome or not.
Accept a string and print each word in reverse order.
Print all alphabets without using a single number (no number should appear in loop) in the program.
Accept a string and print only the First word. [Input: Sherwood Public School] [Output: Sherwood]
Accept a string and print only the Last word. [Input: Sherwood Public School] [Output: School]
Accept a string and print only the Middle word. [Input: Sherwood Public School] [Output: Public]
Accept a string and print them in the following patterns:
a) S b) School
Sc Schoo
Sch Scho
Scho Sch
Schoo Sc
School S