In: Computer Science
You are to write a short program asking the user to input a single character. Specifically, your prompt should be to ask the user to input a vowel - A, E, I , O or U. (We will not use Y ). Your program should then determine if they did indeed type in a vowel (upper or lower case is acceptable for user input for the vowel). You should use data type char for input!
If they did, you print a short message thanking them for following directions.
If they did NOT input a vowel, you print out a short message telling them that they did NOT follow the instructions.
You should use the switch statement construct to solve this problem.
I need help writing this in C++
Have a look at the below code. It is quite intutive to understand. I have converted to input character to lower case to handle all type type of input from the user.
Happy
Learning!