Question: In C++ write a menu program that performs the following steps: a. Prompt the user to enter a string, and let them type it in.
In C++ write a menu program that performs the following steps:
a. Prompt the user to enter a string, and let them type it in. This could
be an entire sentence, with the '%' indicating the end of the string.
b. You may assume the string will be no more than 100 characters,
so declare your array accordingly.
c. Display the following menu with a TITLE:
A) Count the number of vowels in the string
B) Count the number of consonants in the string
C) Convert the vowels to uppercase
D) Convert the vowels to lowercase
E) Convert the consonants to uppercase
F) Convert the consonants to lowercase
G) Display the current string
H) Enter another string
I) Exit Program
d. Validation: 1. Allow only letters, either uppercase or lowercase.
2. Allow only 100 characters entered by the user.
***Use system("cls"); and system("pause"); to go from the main menu to the selection.
DO NOT stay on the main menu and show answers to choices. Always return to
main menu and only exit from main menu. Use iomanip to make the menu
and answers look professional.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
