Question: Q2 Write a C++ Program that takes three file names as Command Line arguments. The first file is input file containing English words. The other

 Q2 Write a C++ Program that takes three file names as

Q2 Write a C++ Program that takes three file names as Command Line arguments. The first file is input file containing English words. The other two files are output files. Program should read the file one word at a time and check if the word begins with a vowel. If the word begins with Vowel write the word as it is in the second file. If the word doesn't begin with vowel, reverse the word and write the in third file. Eg /filepgm input.txt outputl.txt output2.txt

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!