C++ program. Write a value-returning function, isVowel, that returns the value true if a given...
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: 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
Apr 06 2020 View more View Less
Answer (Solved)
Subscribe To Get Solution
Related Questions
-
We sent a text message to Julia, but she was very busy. sent ________ Here is a tip: Words are categorized into different parts of speech, each with grammatical properties.
We sent a text message to Julia, but she was very busy.sent ________Here is a tip:Words are categorized into different parts of speech, each with grammatical properties.
Jun 09 2021
-
The most recent financial statements for Beneke Fabricators,Inc., follow. Sales for 2012
The most recent financial statements for Beneke Fabricators,Inc., follow. Sales for 2012 are projected to grow by 25 percent.Interest expense will remain constant; the ta...
Dec 02 2019
-
Graphical Reasoning Consider the function . (a) Determine the changes (if any) in the intercepts, extrema, and concavity of the graph of f when a is varied. (b) In the same viewing window, use a g
Graphical ReasoningConsider the function(a) Determine the changes (if any) in the intercepts, extrema, and concavity of the graph of f when a is varied.(b) In the same vi...
Jul 31 2021
-
Save & Exit Help Saved Chapter 3 Quiz Forecasting Problem 3-23 3. Long-Life Insurance has developed a linear model that it uses to determine the amount of term life insurance a family of four should
Save & Exit Help Saved Chapter 3 Quiz - Forecasting Problem 3-23 3. Long-Life Insurance has developed a linear model that it uses to determine the amount of term life ins...
Aug 28 2020
-
@ 31. Explain the trade trade diversion effects associated with forming a customs union.
@ 31. Explain the trade trade diversion effects associated with forming a customs union.
Aug 23 2021
-
King Fisher Aviation purchases from suppliers in a quarter are equal to 65% of the next quarter's forecast sales. The payables period is 30 days. Wages, taxes, and other expenses are 25% of sales, and
King Fisher Aviation purchases from suppliers in a quarter are equal to 65% of the next quarter's forecast sales. The payables period is 30 days. Wages, taxes, and other ...
Jun 25 2021
-
Fourteen applicants for a city of Providence, Rhode Island, police academy training class each received from the city a letter stating that it was a "conditional offer of employment" subject
Fourteen applicants for a city of Providence, Rhode Island, police academy training class each received from the city a letter stating that it was a "conditional offer of...
Aug 11 2021
-
You invest $550 in a bank that offers you 3% interest rate per year. You want to keep your money in the bank for ten years. Calculate the interest on interest
You invest $550 in a bank that offers you 3% interest rate per year. You want to keep your money in the bank for ten years. Calculate the interest on interest.You invest ...
Apr 20 2021
-
Explain the trade-offs that inventory managers face when they reorder products or supplies. How is the reorder point computed? Here is a tip: Reorder level is that level of inventory which requires
Explain the trade-offs that inventory managers face when they reorder products or supplies. How is the reorder point computed?Here is a tip:Reorder level is that level of...
Jul 05 2021
-
On May 2, Handy Hardware sent Ram Industries a signed purchase order that stated in part: "Ship for May 8 delivery 300 Model A-X socket sets at current dealer price. Terms 2/10/ net 30." Ram received
On May 2, Handy Hardware sent Ram Industries a signed purchase order that stated in part: "Ship for May 8 delivery 300 Model A-X socket sets at current dealer price. Term...
Aug 04 2021