Question: 1 . At the start of the program create three sets containing: a . EVEN: The set of all even numbers between 0 and 1
At the start of the program create three sets containing:
a EVEN: The set of all even numbers between and ie
b ODD: The set of all odd numbers between and ie
c PRIME: The set of all prime numbers less than ie
Prompt the user to select two sets by name EVEN ODD, andor PRIME Your program should
accept each name regardless of case hint use the upper or lower methods
Prompt the user to select one of three set operations using the following characters:
a d: difference
b i: intersection
c u: union
Your program should treat upper and lowercase inputs the same egI or i are the same
Apply the selected operation to the two sets indicated hint case statements may be useful
here and display the resulting set.
Note: your program should only execute ONCE. We include two examples to illustrate some of the
different types of inputs that are possible
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
