Question: I need help with the following problem. Please write in either python or c++ if possible, thank you! You are to write a program in

I need help with the following problem. Please write in either python or c++ if possible, thank you!
I need help with the following problem. Please write in either python

You are to write a program in either Java, C++, Python that takes two sets of up to 5 symbols (letters, numbers or any characters) and prints the cartesian product of the two sets. The program should allow the user to enter the characters for each set and the output should, consist of the name of each set followed by the characters and on the following line print the cartesian product. Example: A {1,3,4} X B {3,?,D} = {(1,3),(1,?),(1,D),(3,3),(3,?), (3,D,(*,3),(*.?),(*,D)} or E {2,3,5,7} X F(5,6} = {(2,5),(2,6),(3,5),(3,6),(5,5),(5,6), (7,5),(7,6)}

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!