Question: C++ Write a program in a cpp file called countVowels_LastNameFistName.cpp that reads input from the keyboard and outputs the number of times each lowercase vowel
C++
Write a program in a cpp file called countVowels_LastNameFistName.cpp that reads input from the keyboard and outputs the number of times each lowercase vowel appears in it. Your program must contain the function below countVowels and the number of times each lowercase vowel appears in it.
void countVowels(string str, int& aCt, int& eCt, int& iCt, int& oCt, int& uCt); (Notice the return and it should be the same)
(Hint: that if str is a variable of type string, then str.at(i) returns the character at the ith position. The position of the first character is 0. Also, str.length() returns the length of the str, that is, the number of characters in str.)

Please provide "screen shot" image and edited countVowels_LastNameFirstName.cpp file.
nter a string: Hello, This is COSC 1437 he number of a's: 0 The number of e's 1 The number of i's: 2 The number of o's: 1 The number of u's: Press any key to continue
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
