Question: c + + Write a loop that allows the user to enter a string, and that prints all the vowels that occur in the string

c++ Write a loop that allows the user to enter a string, and that prints all the vowels that occur in the string along with the number of vowels (count). Identify the position of the vowel in the string and display the vowel's position. Allow the user to enter a string and display the list of vowels found in the string and a count or total of the number of vowels. A reminder that in order to access every single element in the string you must use the string library functions like the operator []. Other functions that may be useful in completing the assignment are also getline() and length() where the getline() function is a standard library function that is used to read a string or a line from an inp
Sample Input and Output:
Enter a string: Hello there
Vowel number 1 is 'e'. This vowel is in position 2 in the string.
Vowel number 2 is 'o'. This vowel is in position 5 in the string.
Vowel number 3 is 'e'. This vowel is in position 9 in the string.
Vowel number 4 is 'e'. This vowel is in position 11 in the string.
Total number of vowels in the string: 4

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 Programming Questions!