1. The goal of the assignment is to reinforce implementation of dynamic arrays in C++. Specifically, the assignment is to implement a set using a
1. The goal of the assignment is to reinforce implementation of dynamic arrays in C++. Specifically, the assignment is to implement a set using a dynamic array. You need to implement functions that execute the following set operations:
union
intersection
insertion - if the element is already in the set, then nothing happens
deletion - if the element is not in the set, then nothing happens query to check whether an element is in a set
query to find the number of number of elements in a set
display the members of the set
a destructor
a copy constructor
an overloaded assignment operator
In addition to your programming solution, the assignment must include: preconditions and postconditions for the functions.
(The preconditions and postconditions are really important here as I am genuinely struggling with understanding how to make and implement dynamic arrays. I'm new to C++ and don't know the syntax or any of the packages. :()
Step by Step Solution
There are 3 Steps involved in it
Step: 1
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