Question list for string practice
1. Write a program to print whether a given character is an uppercase or a lowercase character or a digit or any other character.
2. A program that reads a line and prints its statistics like:
- The number of uppercase letters
- The number of lowercase letters
- The number of alphabets
- The number of digits
3. Write a program that reads a line and a substring and displays the number of occurrences of the given substring in the line.
4. Write a program that takes a string with multiple words and then capitalizes the first letter of each word and forms a new string out of it.
5. Write a program that reads a string and checks whether it is a palindrome string or not.
6. Write a program that reads a string and displays the longest substring of the given string having just the consonants.
7. Write a program that reads a string and then prints a string that capitalizes every other letter in the string.
8. Write a program that reads the email id of a person in the form of a string and ensures that it belongs to the domain @cbseranker.com (Assumption: no invalid characters are there in the email id).
9. Write a program that takes a string input and reverses it without using any in-built string reverse functions.
10. Write a program to count the number of vowels and consonants in a given string.