Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

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