Question: Write a program that prompts the user to input a sequence of characters and outputs A, E, I, O, U, and Y and the number

Write a program that prompts the user to input a sequence of characters and outputs A, E, I, O, U, and Y and the number of times each vowel appears in the input string.The program should include 3 functions: A null-return function, inString, that prompts the user to input a sequence of characters. User input should be stared in a string data type variable. A value-returning function, isVowel, that returns the value true if a given character is a vowel and otherwise returns false. A null-return function, outVowels, that outputs (to the console) a list of each vowel and the number of times that vowel appeared in the input sequence. Do NOT use global variables. Place as little code as possible in the main() function.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!