Help make a C++ program that: 1. Queries the user for the name of a file of text. 2. Opens the file, and maintains two lists: one list for words beginning with the letter "D" or "d", and a second list for words beginning with any other letter. Each list must maintain words in alphabetical order. 3. Each node in the list must contain the word and the number of times that the word appears. 4. Display (a screen at a time) each of the lists showing the alphabetized list of words and the number of times that each appears. Please have the main function as the first function in the program. Please make the least amount of functions as possible. Like for the file input have the file error thing in the same function. And please add comments throughout the code.
Help make a C++
1. Queries the user for the name of a file of text.
2. Opens the file, and maintains two lists: one list for words beginning with the letter
"D" or "d", and a second list for words beginning with any other letter. Each list
must maintain words in alphabetical order.
3. Each node in the list must contain the word and the number of times that the word appears.
4. Display (a screen at a time) each of the lists showing the alphabetized list of words and the
number of times that each appears.
Please have the main function as the first function in the program. Please make the least amount of functions as possible. Like for the file input have the file error thing in the same function. And please add comments throughout the code.
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 3 images