Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a value-returning function using C++ , isVowel , that returns the value true if a given character is a vowel and otherwise returns false.

Write a value-returning function using C++, 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.

***Use Call-by-Reference (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.

***Match the output below (OUTPUTS section).

***Do not use any pre-defined functions that were not covered in the class.

***Use only topics that were covered in the class.

***No object-oriented programming.

Submit your source code (file name is Ch06_Lab_02_yourLastName.cpp). Make sure that it compiles using Code::Blocks.

If it doesn't compile, you will lose 50%. Improper indentation: -20%

If it doesn't produce the required results: -30%

Do NOT compress the file.

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

OUTPUTS:

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

Enter a character between a and z (or A and Z): a

a is a vowel: 1

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

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

Enter a character between a and z (or A and Z): E

E is a vowel: 1

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

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

Enter a character between a and z (or A and Z): B

B is a vowel: 0

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

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

Enter a character between a and z (or A and Z): @

Invalid input.

Please Enter a character between a and z (or A and Z).

Enter a character between a and z (or A and Z): b

b is a vowel: 0

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

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

Enter a character between a and z (or A and Z): 9

Invalid input.

Please Enter a character between a and z (or A and Z).

Enter a character between a and z (or A and Z): c

c 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

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

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

Intranet And Web Databases For Dummies

Authors: Paul Litwin

1st Edition

0764502212, 9780764502217

More Books

Students also viewed these Databases questions

Question

How is lean thinking associated with supply chain management?

Answered: 1 week ago

Question

How do Dimensional Database Models differ from Relational Models?

Answered: 1 week ago

Question

What type of processing do Relational Databases support?

Answered: 1 week ago

Question

Describe several aggregation operators.

Answered: 1 week ago