Question: Please C++ programming ! 3. Write a class Intet for modeling sets of mtegers in the range 0 through 99. A set should be represented



! 3. Write a class Intet for modeling sets of mtegers in the range 0 through 99. A set should be represented internally as an array of type boon: The array element will be true whenever integer i is in the set and will be false whenever integer 1 is not in the set. Include a no argument constructor that initializes a set to the so-called "empty set," i.e., a set whose array representation contains all false values. The class should include the following overloaded operators: to perform the union of two set (the union of sets A and B is the set that contains all elements of set A or set B, or both) to perform the intersection of two sets (the intersection of sets A and B is the set that contains all elements in both set A and set B) to form the difference of two sets (the difference of sets A and B is the set containing those elements that are in A but not in B) to add an integer into a set. to delete an integer from a set. to determine if two sets are equal to form the complement of a set (the complement of set A, denoted A. is the set containing all the elements in the universal set that are not in A - the universal set for this problem is the set containing all integers between 0 and 99) to determine if one set is a subset of another set (set A is a subset of set B means that for any element x in 4, x is also an element of set B)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
