Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In your main function, do the following to test your functions above: 1. Create a new list of words (call it A). Your program creates

image text in transcribed
In your main function, do the following to test your functions above: 1. 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 (MAX_WORDS). After that, it calls the function ReadWordList on object A (the function is described above). 2. Add a new word to the list (call the function in part (c)). 3. 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. 4. Create a second list (call it B), input Max_Words from the user. Then call the function ReadWordList on B. 5. Use the overloaded == operator to check if list A and list B are equal. 5. Create a third list (C) using the copy constructor (make it a copy of the first list) 6. Create a fourth list (D) and after it is created, make it equal to the second list created (this tests your overloaded = ). 7. 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 []). 8. Sort the words in the first list A. Call the function in part (f) 9. 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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Lab Manual For Database Development

Authors: Rachelle Reese

1st Custom Edition

1256741736, 978-1256741732

More Books

Students also viewed these Databases questions