# 1 a function that returns the number of elements in a set 2 a function that checks 5346623

(1) A function that returns the number of elements in a set;

(2) A function that checks if an element is part of a set;

(3) A function that adds an element to a set if it does not already exist in the set (use the function defined at 2 to check if the element exists in the set or not);

(4) A function that deletes an element from a set if it exists in the set (use the function defined at 2 to check if the element exists in the set or not);

(5) A function that computes the union of 2 sets (use the functions defined at points 1-4 whenever possible/needed);

(6) A function that computes the intersection of 2 sets (use the functions defined at points 1-4 whenever possible/needed);

(7) A function that computes the difference of 2 sets (use the functions defined at points 1-4 whenever possible/needed);

(8) A %u201Cmain%u201D function that:

a) Reads a series of elements from the console, and adds them to a setA, if they do not exist already in setA. The elements will be read straight after the program is run, without reading from the console the number of elements in setA. The program will keep reading elements (strings) from the console and adding them to setA until the user enters %u201CSTOP%u201D, in which case the last element to be added to setA will be the element added right before the user entered %u201CSTOP%u201D. Make use of the function defined at point 3 in order to add elements to setA. If an element is input twice by the user, it will be added only once to setA.

b) The same as a), but for setB

c) Prints out the number of elements in setA and in setB and the actual elements of the two sets (use the function defined at 1 for this purpose.)

d) Computes and prints out the union between setA and setB and the number of elements in it (use the function defined at 5 for this)

e) Computes and prints out the intersection between setA and setB and the number of elements in it (use the function defined at 6 for this)

f) Computes and prints out the difference between setA and setB and the number of elements in it (use the function defined at 7 for this)

g) Computes and prints out the difference between setB and setA and the number of elements in it (use the function defined at 7 for this)