Question: I know how set and function works ... but i just dont know how do i implement it on a C++ program.. here is the

I know how set and function works ... but i just dont know how do i implement it on a C++ program..

here is the question that i have problem with

a) User need add input for set A, B and Relation

b) Add at least 2 operation of sets such as intersection, union, and etc.

c) Add at least 2 operation of function such as transistive, symetric and etc.

d) Write a program that able to pick any one of four options(TWO operation of set and TWO operation of relation)

example of the output

I know how set and function works ... but i just dont

Please input the following. Input Set A: 1, 2, 3, 4 Input Set B: 2, 4, 6, 8 Input Relations: {(1, 1), (1, 2), (2, 1), (2, 2), (3, 3), (4,4)} Select ONE operation 1. Set - Intersection operation 2. Set - Union operation 3. Relation - Determine transitive 4. Relation - Determine symmetric Please input your option : Example Your option is 1. Set - Intersection operation Output : 2,4 Example Your input is 3. Relation function - Determine transitive Output : YES

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!