Ethan O.

asked • 01/29/20

Please help me program this

C++



Write a program that extracts and displays all vowels in a file. 

  1. Prompt the user for the filename of a text file.
  2. Read through the entire file and write every vowel to the output file. 
  3. Do not write consonants or spaces to the file
  4. Write all line breaks (newlines) from the input file into the output file as well. 
  5. The output filename should be similar to the input file. Use the input filename and preface the name with "vowels_". 
  6. For example, if the input file is named foobar.txt, the output file should be named vowels_foobar.txt
  7. Do all of this with a single filestream
  8. You may not process more than one line of input before writing to the output file


1 Expert Answer

By:

Patrick B. answered • 02/02/20

Tutor
4.7 (31)

Math and computer tutor/teacher

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.