C++ program
Posted: Sat May 14, 2022 7:21 pm
C++ program
Problem: Write a program that reads a file selected by the user and displays the number of words, consonants, and vowels found in the file on the computer screen. Be sure you include a clear prompt telling the user what they are to enter. For the purposes of this problem, you may assume that a word is any sequence of 1 or more non- whitespace characters and that vowels are uppercase and lowercase (A, E, I, O, and U). Please note that you are not allowed to use character and string functions not covered in this course. Forbidden functions include, but are not limited to: substr, find, isalpha, isupper, and islower. If you use any of these in your solution, you will NOT receive any points for the problem submission. Included with this problem, is a text file named WindowsOneLine.txt and MacOneLine.txt. When I run the control program on this file the output is: WindowsOneLine. txt contains: words = 6 consonants = 12 vowels = 7 Please use the appropriate file for your operating system.
Problem: Write a program that reads a file selected by the user and displays the number of words, consonants, and vowels found in the file on the computer screen. Be sure you include a clear prompt telling the user what they are to enter. For the purposes of this problem, you may assume that a word is any sequence of 1 or more non- whitespace characters and that vowels are uppercase and lowercase (A, E, I, O, and U). Please note that you are not allowed to use character and string functions not covered in this course. Forbidden functions include, but are not limited to: substr, find, isalpha, isupper, and islower. If you use any of these in your solution, you will NOT receive any points for the problem submission. Included with this problem, is a text file named WindowsOneLine.txt and MacOneLine.txt. When I run the control program on this file the output is: WindowsOneLine. txt contains: words = 6 consonants = 12 vowels = 7 Please use the appropriate file for your operating system.