Question: in c++ Write a program that extracts and displays all vowels in a file. Prompt the user for the filename of a text file. Read

in c++

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

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

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!