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: 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 (MAX_WORDS). After that, it calls the function ReadWordList
on object A(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 Max_Words 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).
image text in transcribed

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

Informix Database Administrators Survival Guide

Authors: Joe Lumbley

1st Edition

0131243144, 978-0131243149

More Books

Students also viewed these Databases questions