Question: Trying to do this in C++: Write a program that reads a text file and outputs a list of all words in alphabetical order. Each
Trying to do this in C++:

Write a program that reads a text file and outputs a list of all words in alphabetical order. Each word should be displayed with a list of line numbers on which it occurs in the file. Use an AVL binary search tree to store the words seen. Requirements: 1. The program must work for arbitrary large files sizes. 2. You must test the program using the file I will provide. 3. Each node is to have a linked list to store all of the line numbers. Use the list you created in assignment 1. 4. Make the tree a class with the necessary functions. Example: Input Hello Bill, Did you hear about Aunt Betty or about Aunt White? I cannot believe that Output about Aunt believe Betty Bill cannot Did hear Hello cam-ma-amma or that White you Write a program that reads a text file and outputs a list of all words in alphabetical order. Each word should be displayed with a list of line numbers on which it occurs in the file. Use an AVL binary search tree to store the words seen. Requirements: 1. The program must work for arbitrary large files sizes. 2. You must test the program using the file I will provide. 3. Each node is to have a linked list to store all of the line numbers. Use the list you created in assignment 1. 4. Make the tree a class with the necessary functions. Example: Input Hello Bill, Did you hear about Aunt Betty or about Aunt White? I cannot believe that Output about Aunt believe Betty Bill cannot Did hear Hello cam-ma-amma or that White you
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
