5. Programming exercise 1. Write a value returning function, isVowel that return
ID: 3645898 • Letter: 5
Question
5. Programming exercise
1. Write a value returning function, isVowel that returns the value true if a given character is a vowel and otherwise returns false. [Hint: The return type is a bool and you pass a char as parameter. Use a switch structure and test for both uppercase and lowercase a, e, i, o, u.]
2. Write a program that prompts the user for a character. Use the get method to read the character. Create a loop so that the user can enter as many characters and check to see if the entered character is a vowel. The loop stops if the user enters
Explanation / Answer
#include int main() { coutRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.