Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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:

image text in transcribed

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 #include #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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Next Generation Databases NoSQLand Big Data

Authors: Guy Harrison

1st Edition

1484213300, 978-1484213308

More Books

Students also viewed these Databases questions

Question

Express the number in decimal notation. 2.01 x 10 0

Answered: 1 week ago