Question: a) You have two bits, a and b. Write a boolean formula that outputs 1 exactly when a is numerically greater than b. Submit
a) You have two bits, a and b. Write a boolean formula that outputs 1 exactly when a is numerically greater than b. Submit a file named p4a.py. b) You have two two-bit numbers, a (consisting of two bits a1 a0) and b (consisting of two bits b1 bo). Write a boolean formula that outputs 1 exactly when a is numerically greater than b. Submit a file named p4b.py. c) You have two three-bit numbers, a (consisting of three bits a2 a1 a0) and b (consisting of three bits b2 b1 b0). Write a boolean formula that outputs 1 exactly when a is numerically greater than b. Submit a file named p4c.py. Hint: Remember that you can use == for XNOR (aka not XOR).
Step by Step Solution
3.52 Rating (152 Votes )
There are 3 Steps involved in it
Here are the boolean formulas for the given scenarios a For two bits a and ... View full answer
Get step-by-step solutions from verified subject matter experts
