Write a program that reads a string an outputs the number of timeseach lowercase
ID: 3618104 • Letter: W
Question
Write a program that reads a string an outputs the number of timeseach lowercase vowel appears in it. Your program must contain afunction with one of its parameters a string, and return the numberof times each lowercase vowel appears in it. Also write a programto test your function. (Note that if str is a variable of typestring, then str.at(i) returns the character at the ith position.The position of the first character is 0.Also str.length() returnsthe length of the str, that is the number of characters in str.)Explanation / Answer
please rate - thanks #include #include using namespace std; int count(string,char); int main() { string sentence; int a,e,i,o,u; coutRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.