Write a main function to declare an object of type vector of character type then print a menu for a user to select any function on vector as follows:
1.)
Read a character sequence (Vector).
2.)
Print Vector contents.
3.)
Insert new character.
4.)
Delete character.
5.)
Search vector for a word of size 2.
i.e. “no” , “it” , “is”, “an”
6.)
Count:
1.
Number of words.
2.
Number of spaces.
3.
Number of capital (Uppercase).
4.
Number of small (Lowercase).
5.
Number of digit (0-9).
6.
Number of special character.
7.)
Reverse the element.
8.)
Substitute a character with new one.
9.)
Exit.
Notes:
1.
Write a Function to print this menu then read a choice from keyboard.
2.
Submenu at choice 6 must be printed after user chooses Count Option.
3.
Write a Function for each choice.
4.
The menu must appear after executing each function until choice 9 entered.
i couldnt wrote this program.could you help me please :(