Question: Programming Language: C++ Write a program with a language of your choice that checks whether a relation is reflexive, irreflexive, symmetric, anti-symmetric, asymmetric, and transitive.
Programming Language: C++
Write a program with a language of your choice that checks whether a relation is reflexive, irreflexive, symmetric, anti-symmetric, asymmetric, and transitive. NOTE 1/ Your program must have functions for each check e.g. (I pick Java as an example) public static boolean isReflexive(int[][] matrix) public static boolean isIrreflexive(int[][] matrix) public static boolean isSymmetric(int[]] matrix) public static boolean isAntisymmetric(int[][] matrix) public static boolean isAsymmetric(int[][] matrix) public static boolean isTransitive(int][] matrix) 2/ Please submit the complete program to Beachboard under Lab 3 by 03/01/2018 at the beginning of class. 3/ You will demo your program during the lab 4/ Here is a sample run: (We assume that the user provides a square matrix with entries 0 or 1 only)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
