Question: C++ program (complete) - the file can be anything 6. Modified Programming Exercise 5.49 (10 marks) (Count vowels and consonants, file input, nested-loops, switch statement)
C++ program (complete) - the file can be anything

6. Modified Programming Exercise 5.49 (10 marks) (Count vowels and consonants, file input, nested-loops, switch statement) Assume that letters A, E,I, O and U are the vowels. Write a program that reads strings from a text file, one line at a time, using a while-loop. You do the following operations within each loop: .Read one line from the input file and store it in a string; Count the number of vowels and consonants (using either while-loop or for-loop) in the file string The while-loop will terminate when the end-of-file is reached. After the loop is finished, the program displays the total number of vowels and consonants in the text file. A text file, named "ass4 _06_input.txt", is provided as your testing input file.]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
