Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Language Of Choice: C++ Write a program with a language of your choice that checks whether a relation is reflexive, irreflexive, symmetric, anti-symmetric, asymmetric, and

Language Of Choice: C++image text in transcribed

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) Relation [Java Application] /Library/Java/JavaVirtualMachines/idk 1.8.0102.jdk/Contents/Home/bin/java (Oct 17, 2016, 12:21:09 PM) 00 01 010 0 REFLEXIVE? NO IRREFLEXIVE? YES SYMMETRIC? YES ANTISYMMETRIC? NO ASYMMETRIC? NO TRANSITIVE? NO 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) Relation [Java Application] /Library/Java/JavaVirtualMachines/idk 1.8.0102.jdk/Contents/Home/bin/java (Oct 17, 2016, 12:21:09 PM) 00 01 010 0 REFLEXIVE? NO IRREFLEXIVE? YES SYMMETRIC? YES ANTISYMMETRIC? NO ASYMMETRIC? NO TRANSITIVE? NO

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Databases And Information Systems Second East European Symposium Adbis 98 Poznan Poland September 1998 Proceedings Lncs 1475

Authors: Witold Litwin ,Tadeusz Morzy ,Gottfried Vossen

1st Edition

3540649247, 978-3540649243

More Books

Students also viewed these Databases questions

Question

What are the two main types of computer networks?

Answered: 1 week ago