Question: Write a C++ program to: 1.Generate a matrix for a given set and relation: Input: A={1, 2, 3, 4 } B={ a, b, c} R={
Write a C++ program to: 1.Generate a matrix for a given set and relation: Input: A={1, 2, 3, 4 } B={ a, b, c} R={ (1,a) , ( 2,c) , (3, b) }

2. Generate two matrix tor two relations (you can assume the relations) that multiply two matrices, then find the composition matrix using matrix multiplication. *I need the source code and the output
Output
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
