Question: 7 Convert the following switch statement to a nested-if statement: (You do not need to do error-checking for lower-case letters). cout < < Input
7 Convert the following switch statement to a nested-if statement: (You do not need to do error-checking for lower-case letters). cout < < "Input a CAPITAL letter: "; cin >> letter; switch (letter) { case 'A': case 'E': case 'I': case 'O': case 'U': default: cout < < letter < < " is a vowel. "; break; cout < < letter < < " is a vowel. "; break; cout < < letter < < " is a vowel. "; break; cout < < letter < < " is a vowel. "; break; cout < < letter < < " is a vowel. "; break; cout < < letter < < " is cout < < letter < < " is break; not a vowel. "; a consonant. ";
Step by Step Solution
3.48 Rating (155 Votes )
There are 3 Steps involved in it
Heres the switch statement converted to a nested if ... View full answer
Get step-by-step solutions from verified subject matter experts
