Question: C++ Q3. Code, compile and upload the following program. Name it Q3.cpp. Output all non-vowels in a given c-string. a) Create a c-string and set
Q3. Code, compile and upload the following program. Name it Q3.cpp. Output all non-vowels in a given c-string. a) Create a c-string and set it equal to "this is a cstring'". b) Create a function isSpace that returns true if a character is a space (false otherwise). Recall that a space character is defined as c) Create a function isVowel that returns true if a given character is a vowel (false otherwise). Vowels are defined as 'a', 'e', 'T", 'o','u'. d) Use the defined functions in main to output all non-vowel and non-whitespace characters in the given cstring. Output Example C-string is: this is a cstring Vowels extracted: thsscstrng
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
