In java write code that will take in input from a user containing two sets. Then you will complete all 6 set operations on those sets. Your user input/output should look similar to the assignment Set Operations Assignment (which is attatched) The universal set is all integers from 1 to 100. Ideally your code would be able to accept all types of input but for practice we are going to stick to integers. You should test your code with more than the following inputs but I will be grading you based on if your code is able to accept the following as user input (one set/pair at a time) and give the correct output for the given set (do not hard code it for the all sets at once, the output should be determined by the code based on the input, meaning I could put any two set integers as input and it should work): S = {1, 2, 3, 4} T = {3, 4, 5, 6} S = {1, 3, 5} T = {3, 4, 5, 6} S = {10, 13, 22, 41} T = {40, 60, 80} S = {3, 10} T = {1, 2, 3} S = {10} T = {3}
In java write code that will take in input from a user containing two sets. Then you will complete all 6 set operations on those sets. Your user input/output should look similar to the assignment Set Operations Assignment (which is attatched) The universal set is all integers from 1 to 100.
Ideally your code would be able to accept all types of input but for practice we are going to stick to integers. You should test your code with more than the following inputs but I will be grading you based on if your code is able to accept the following as user input (one set/pair at a time) and give the correct output for the given set (do not hard code it for the all sets at once, the output should be determined by the code based on the input, meaning I could put any two set integers as input and it should work):
S = {1, 2, 3, 4} T = {3, 4, 5, 6}
S = {1, 3, 5} T = {3, 4, 5, 6}
S = {10, 13, 22, 41} T = {40, 60, 80}
S = {3, 10} T = {1, 2, 3}
S = {10} T = {3}
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 9 images