Question: C++ Write a program that reads in a line of text and counts the number of characters in the line. Once it does that determine
C++
Write a program that reads in a line of text and counts the number of characters in the line. Once it does that determine the number of vowels in the string and then determines the percentage of vowels in the overall line. You should have at least 5 lines of input. Output should be the following: a. Original line b. Number of vowels in the line c. Percentage of vowels in the line d. Overall average of vowels in the 5 lines.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
