Answered step by step
Verified Expert Solution
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++,
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 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 classesStep 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