Question
C++ _ the portion of my code to use and add to is below: Create a program that counts the number of vowels in a
C++ _ the portion of my code to use and add to is below:
Create a program that counts the number of vowels in a file.
Requirements:
User must specify the name of the file to analyze when the program is run. If not an error should be generated. Use constants where appropriate.
Use I/O (stream) manipulators to format the output so that it is identical to the example below
Example:
Notice in the pic above how the program was run. It wasn't clicked on but instead it was run from a console window that was opened first. Notice how both the exe (VowelCounter.exe) and the file to analyze (Constitution_of_the_United_States.html) are in the same folder (aka directory) and used together on the command line of the console window.
Code:
#include "stdafx.h" #include "windows.h" #include
int main(int argc, char* argv[]) { // The executable name and at least one argument? if (argc C: \Users \John\Documents\Visual Studio 2017\Projects\ITCS2530\VowelCount\Release>VowelCount.exe Constitution_of_the_United_States.html nalyzing file 'Constitution_of_the_United_States.html 2076 The number of A's: The number of E's: The number of I's: Press any key to continue
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started