(2) Set operation: Union, Intersection and difference
?Problem description?Write a program to demonstrate the union, intersection anddifference operation of set.?Basic requirements??(1) the set elements are limited to letters in lower case[āaā..āzā].??Test data??(1)Set1=”magazine”?Set2=”paper”??Set1?Set2=”aegimnprz”?Setl?Set2=”ae”?Set1-Set2=”gimnz”??(2)Set1= ” 012oper4a6tion89″?Set2=”error data”??Set1?Set2=”adeinoprt”?Setl?Set2=”aeort”?Set1-Set2=”inp”??Hint for implementation??array can be used to represent the set.
Expert Answer
An answer will be send to you shortly. . . . .