Question: this is for c++ You are to write a short program asking the user to input a single character. Specifically, your prompt should be to

this is for c++
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,Oor 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. It is worth 10 points. For 5 extra additional points (extra credit), your program should determine if the user input a special character which include the following: !" # $ %&'+--/ if they did not input a special character listed above, your program should determine if they input a space, or a numeric digit o through 9, or an alphabet character other than a vowel. There are MANY more special characters than the ones I listed above, but I only want you to check those as they fall in the ASCII range together HINT: Look at Chapter 10 sections 10.1 and 10.2 to help as well with this. Sample output is shown below Please enter a vowel - A, E, I, O, or U please e Thank you. I see that you entered an E Thank you for using my vowel checking program! Please enter a vowel - A, E, I, O, OI U please A Thank you. I see that you entered an A Thank you for using my vowel checking program !! Please enter a vowel - A, E, I, O, or U please 9 Well, I see that you did NOT Eollow my instructions. I see that you entered a numeric digit Thank you for using my vowel checking program! Please enter a vowel - A, E, I, O, or U please Well, I see that you did NOT Eollow my instructions. I see that you entered a special character Thank you for using my vowel checking program
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
