Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please do in C++, -------------------------------------------------------------------- class used for the functions: ------------------------------------------------------------------ ordered array list header file: ------------------------------------------------------------------- unordered array list header file: HOMEWORK #17-Virtual Functions

Please do in C++,

image text in transcribed

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

class used for the functions:

image text in transcribed

image text in transcribed

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

ordered array list header file:

image text in transcribed

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

unordered array list header file:

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

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 Concepts

Authors: David Kroenke, David Auer, Scott Vandenberg, Robert Yoder

10th Edition

0137916787, 978-0137916788

More Books

Students also viewed these Databases questions