Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started