Question: In your main function, do the following to test your functions above: Create a new list of words ( call it A ) . Your
In your main function, do the following to test your functions above:
Create a new list of words call it A
Your program creates a new word list object. It asks the user to enter the maximum
number of words in the list MAXWORDS After that, it calls the function ReadWordList
on object the function is described above
Add a new word to the list call the function in part c
Search for a word.
Enter a word from keyboard and call the function Contains to check whether the word
exists in the list or not.
Create a second list call it B input MaxWords from the user. Then call the function
ReadWordList on B
Use the overloaded operator to check if list A and list B are equal.
Create a third list C using the copy constructor make it a copy of the first list
Create a fourth list D and after it is created, make it equal to the second list created
this tests your overloaded
Enter an index i from the keyboard, display the ith word in all of the four lists on
screen using the operator this tests your
Sort the words in the first list A Call the function in part f
Neatly, display the words in all of the four lists on screen. Call the function in part g
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
