Professional Documents
Culture Documents
Engineering Faculty
Discrete Mathematics
Overview
- Tasks
- Task 1
- Task 2
- Homework
3
Tasks
Task 1
Write a program to print the truth table of the logic operators: AND, OR, XOR,
INVERSE, IMPLICATION, and BICONDITIONAL.
Task 2
Write a program to convert between counting systems: binary, octave, decimal, and
hexadecimal.
Homework
● Write a program to add, subtract, multiply, and divide (with remainder) two
binary numbers.
● Bonus: Write a program to print the GCD (i.e., the greatest common divisor) of
two numbers (use prime factorization, modulus, and Euclid's Algorithms).