write a program that opens a text file and reads its contents into a stack of ch
ID: 3530742 • Letter: W
Question
write a program that opens a text file and reads its contents into a stack of characters. The program should then pop the characters from the stack and save them in a second text file. The order of characters saved in the second file should be the reverse of their order in the first file. Additionally your program must utilize a stack to store vowels found in the file. Before your program ends, traverse the "vowel stack" to assist with providing a report on the screen: Number of occurrences for each vowel: A - 72 E - 91 I - 81 O - 92 U - 59 Implement the stack as a class (linked list) and use the ".h" file.Explanation / Answer
http://www.programmingsimplified.com/c-program-read-file
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.