Tim Bogdanov
February 22, 2017 · Public |

Nazim Uddin
February 20, 2017 · Public |

Can anyone help with this? I need It in C++.

1. Sets

Implement an abstract data type (class) ”SET OF INTEGERS” with operation ”UNION”

and ”INTERSECTION”. The name of your class should be called setIntegers.

The set constructor should accept a vector of integers or implement a method used to add

integers and update the set of integers property of your class.

2. Test Case

Implement a script to test the Set class setIntegers. Look at the hint below. Also implement

a method called integerSet in the setIntegers class that prints out the sets of integers.

3. Comments and reports (10 points)

4. Write a function, called in your Test Case script that reads from a txt file containing two

columns of integers. Find the union and intersection of the two column of integers.

Hints: The intersection of two sets are those elements that belong to both sets.

The union of two sets are all the distinct elements from both sets.

Aravind Gunda
February 20, 2017 · Public |

This is a Best website to learn free of all courses. Thank you to this website