Remove the minor errors from this program.please using namespace std;int main() {char c;int isLowercaseVowel, isUppercaseVowel;cout > c;// evaluates to 1 (true) if c is a lowercase...


Remove the minor errors from this program.please


Program # 03: Program to Check Whether a character is Vowel or Consonant.<br>#include <iostream><br>using namespace std;<br>int main() {<br>char c;<br>int isLowercaseVowel, isUppercaseVowel;<br>cout < > c; // evaluates to 1 (true) if c is a lowercase vowel isLowercaseVowel = (c == 'a' || c == 'e' ||c == i' || c == 'o' || c == 'u'); // evaluates to 1 (true) if c is an uppercase vowel isUppercaseVowel = (c == 'A' || c == 'E' || == '" || c == 'O' ||c == 'U'); // show error message if c is not an alphabet if (lisalpha(c)) printf("Error! Non-alphabetic character."); else if (isLowercaseVowel || isUppercaseVowel) cout <><>< "is="" a="" vowel.";="" else="" cout=""><« c«="" "="" is="" a="" consonant.";="" return="" 0;="" "/="">
Extracted text: Program # 03: Program to Check Whether a character is Vowel or Consonant. #include using namespace std; int main() { char c; int isLowercaseVowel, isUppercaseVowel; cout < "enter="" an="" alphabet:="" ";="" cin="">> c; // evaluates to 1 (true) if c is a lowercase vowel isLowercaseVowel = (c == 'a' || c == 'e' ||c == i' || c == 'o' || c == 'u'); // evaluates to 1 (true) if c is an uppercase vowel isUppercaseVowel = (c == 'A' || c == 'E' || == '" || c == 'O' ||c == 'U'); // show error message if c is not an alphabet if (lisalpha(c)) printf("Error! Non-alphabetic character."); else if (isLowercaseVowel || isUppercaseVowel) cout <><>< "is="" a="" vowel.";="" else="" cout=""><« c«="" "="" is="" a="" consonant.";="" return="">

Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here