Question: Write a program with a language of vour choice takes two sets as input and outputs the intersection, union, difference, and Cartesian product of the

 Write a program with a language of vour choice takes two

Write a program with a language of vour choice takes two sets as input and outputs the intersection, union, difference, and Cartesian product of the two sets. NOTE: 1/ Your program must have functions for each operation. 2/ Please submit the complete program to Beachboard under Lab 2 by 02/15/2018 at the beginning of class. 3/ You will demo your program during the lab. 4/ Here is a sample run: Set A: 11, 2, 3, 4} Set B: 12, 3, 4, 5} The intersection of A and B: (2, 3, 4) The union of A and B: {1, 2, 3, 4, 5} The difference of A and B: {1] The Cartesian product of A and B: ((1, 2), (1, 3), (1, 4), (1, 5), (2, 5/ Here is another sample run: Set A: 1 Set B: 12, 3, 4, 5} The intersection of A and B: { The union of A and B: {1, 2, 3, 4, 5} The difference of A and B: {1]^ The Cartesian product of A and B: ((1, 2), (1, 3), (1, 4), (1, 5)}

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!