Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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: 2

Invalid input.

Please try again.

Enter an alphabet character:

**********************************

Enter an alphabet character: a

a is a vowel: 1

Do you want to repeat this program?
y/n
> y

**********************************

Enter an alphabet character: E

E is a vowel: 1

Do you want to repeat this program?
y/n
> y

**********************************

Enter an alphabet character: B

B is a vowel: 0

Do you want to repeat this program?
y / n
> n

Step by Step Solution

There are 3 Steps involved in it

Step: 1

include using namespace std bool isvowelchar c ... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Document Format ( 2 attachments)

PDF file Icon
6093cc7d899fa_24176.pdf

180 KBs PDF File

Word file Icon
6093cc7d899fa_24176.docx

120 KBs Word File

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Differential Equations and Linear Algebra

Authors: Jerry Farlow, James E. Hall, Jean Marie McDill, Beverly H. West

2nd edition

131860615, 978-0131860612

More Books

Students also viewed these Programming questions