Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please do in C++, and included comments. Thank you Classes: -------------------------------------------------- ---------------------------------------------------- --------------------------------------------------- --------------------------------------------------- HOMEWORK #17-Virtual Functions for Unordered and Ordered Lists Write a program

Please do in C++, and included comments. Thank you

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

Oracle Database 19c DBA By Examples Installation And Administration

Authors: Ravinder Gupta

1st Edition

B09FC7TQJ6, 979-8469226970

Students also viewed these Databases questions

Question

Discuss whether we can control stereotyping.

Answered: 1 week ago