Question: Turn your unorderedSet class into a template. Use the arrayListType and unorderedArrayListType templates from the List Template example.. Research the mathematical operations of set union

Turn your unorderedSet class into a template. Use the arrayListType and unorderedArrayListType templates from the List Template example.. Research the mathematical operations of set union and set intersection and overload the + and - operators to perform the these operations. Write a program to test your template with integer and string sets.

Turn in your unorderedSet template and your test program (make no changes to the arrayListType and unorderedArrayListType templates). Also turn in one or more screen shots showing the results of your testing.

Once completed you will demonstrate that you can

Develop a Set template class which is derived from the unorderedArrayList template.

Build parameterized operator functions to overload + and - so that they perform set union and set intersection operations.

Design a test program to prove that your template class can manipulate integer and string sets.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!