Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please do in C++, Classes: --------------------------------------- ---------------------------------------- --------------------------------------------- ---------------------------------------------- HOMEWORK #17-Virtual Functions for Unordered and Ordered Lists Write a program to create an unordered and

Please do in C++,

image text in transcribed

image text in transcribed

image text in transcribed

Classes:

image text in transcribed

image text in transcribed

---------------------------------------

----------------------------------------

image text in transcribed

---------------------------------------------

----------------------------------------------

image text in transcribed

HOMEWORK #17-Virtual Functions for Unordered and Ordered Lists Write a program to create an unordered and ordered set of lists Specifications: 1. Copy the arrayListType class from Malik into an appropriate header and source file. 2. Copy the unorderedArrayListType class from Malik into an appropriate header and source file Copy the orderedArraylistType class from Malik into an appropriate header file. Complete the orderedArrayListType class source file by writing the missing 3. 4. definitions of the appropriate member functions. 5. The function remove () in the class arrayListType removes only the first occurrence of an element. Add the function removeAll () as an abstract function to the class arrayListType, which would remove all occurrences of a given element. Also write the definition of the function removeAll ) in the class unorderedArrayListType and orderedArrayListType 6. Add the member function min ) as an abstract function to arrayListType to return the smallest element of the list. Also write the definitions of the function min ) in the class unorderedArrayListType and orderedArrayListType. 7. Add the member function max () as an abstract function to arrayListType to return the largest element of the list. Also write the definitions of the function max ) in the class unorderedArrayListType and orderedArrayListType. 8. Write a program to test the full functionality of the unorderedArrayListType and orderedArrayListType classes HOMEWORK #17-Virtual Functions for Unordered and Ordered Lists Write a program to create an unordered and ordered set of lists Specifications: 1. Copy the arrayListType class from Malik into an appropriate header and source file. 2. Copy the unorderedArrayListType class from Malik into an appropriate header and source file Copy the orderedArraylistType class from Malik into an appropriate header file. Complete the orderedArrayListType class source file by writing the missing 3. 4. definitions of the appropriate member functions. 5. The function remove () in the class arrayListType removes only the first occurrence of an element. Add the function removeAll () as an abstract function to the class arrayListType, which would remove all occurrences of a given element. Also write the definition of the function removeAll ) in the class unorderedArrayListType and orderedArrayListType 6. Add the member function min ) as an abstract function to arrayListType to return the smallest element of the list. Also write the definitions of the function min ) in the class unorderedArrayListType and orderedArrayListType. 7. Add the member function max () as an abstract function to arrayListType to return the largest element of the list. Also write the definitions of the function max ) in the class unorderedArrayListType and orderedArrayListType. 8. Write a program to test the full functionality of the unorderedArrayListType and orderedArrayListType classes

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

Database And Expert Systems Applications 19th International Conference Dexa 2008 Turin Italy September 2008 Proceedings Lncs 5181

Authors: Sourav S. Bhowmick ,Josef Kung ,Roland Wagner

2008th Edition

3540856536, 978-3540856535

More Books

Students also viewed these Databases questions

Question

Explain methods of metal extraction with examples.

Answered: 1 week ago