Write a value-returning function

C++ program. Write a value-returning function, isVowel, that returns the value true if a given character is a vowel and otherwise returns false.***Collect the user’s…

C++ program. Write a value-returning function, isVowel, that returns the value true if a given character is a vowel and otherwise returns false.***Collect the user’s input in the main() and pass it to the isVowel() function. isVowel() function returns true or false.***Use Call-by-Value (value returning function).***Validate the user’s input (allow only alphabet characters: a through z, or A through Z).***Allow the user to repeat the program.OUTPUTS:

Enter an alphabet character: 2Invalid input.Please try again.Enter an alphabet character:

Enter an alphabet character : aa is a vowel: 1Do you want to repeat this program?y/n

y

Enter an alphabet character : EE is a vowel: 1Do you want to repeat this program?y/ny

Enter an alphabet character : BB is a vowel: 0Do you want to repeat this program?y/nn
Let’s block ads! (Why?)

Do you need any assistance with this question?
Send us your paper details now
We’ll find the best professional writer for you!

 



error: Content is protected !!