Please write code in JAVA
Posted: Sun May 15, 2022 10:13 am
Please write code in JAVA
2. Create a header file named "Circuits.h" that defines a bool function for each Boolean function from Task 1. Each function must take three bool (boolean) parameters for each input (A, B, C) and its body must consist of only a single return statement that consists of at most 7 rational and logical operators. The equivalent relational or logical operator for each standard Boolean operator is provided in the table below Boolean Operator Equivalent Operator AND && OR (+) II NOT ( ! XOR (2) !=
Task 1 For each Boolean function (Fi) in the truth table below, write the product of sums (POS) and sum of products (SOP) representations of the function. 1 A B Fi F2 F3 F4 F5 . 1 1 1 1 1 0 1 0 1 1 0 0 1 1 0 1 1 0 1 0 1 1 1 1 1 0 0 1 0 0 1 0 0 1 1 0 1 1 0 1 0 1 0 1 0 0 0 0 0 0 1 1 0 0 1 1 0 0 0 0 0 1 0 0 Represent NOT with / or !.
2. Create a header file named "Circuits.h" that defines a bool function for each Boolean function from Task 1. Each function must take three bool (boolean) parameters for each input (A, B, C) and its body must consist of only a single return statement that consists of at most 7 rational and logical operators. The equivalent relational or logical operator for each standard Boolean operator is provided in the table below Boolean Operator Equivalent Operator AND && OR (+) II NOT ( ! XOR (2) !=
Task 1 For each Boolean function (Fi) in the truth table below, write the product of sums (POS) and sum of products (SOP) representations of the function. 1 A B Fi F2 F3 F4 F5 . 1 1 1 1 1 0 1 0 1 1 0 0 1 1 0 1 1 0 1 0 1 1 1 1 1 0 0 1 0 0 1 0 0 1 1 0 1 1 0 1 0 1 0 1 0 0 0 0 0 0 1 1 0 0 1 1 0 0 0 0 0 1 0 0 Represent NOT with / or !.