Question: Write a C/C++ program that reads in integers as input parameters. The integer inputs are the positions of the minterms of the function of 3
Write a C/C++ program that reads in integers as input parameters. The integer inputs are the positions of the minterms of the function of 3 boolean variables x, y, z. It prints out the expression in SOP form. It then simplifies it by pairing terms that only have one variable changed between them. It then prints out the simplified expression.
EXAMPLE
Original expression for ( m1 + m3 + m6 + m7 ): x'y'z + x'yz + xyz' + xyz Simplified expression: x'z + xy $ ./sop 0 1 2 3 Original expression for ( m0 + m1 + m2 + m3 ): x'y'z' + x'y'z + x'yz' + x'yz Simplified expression: x' $ ./sop 0 3 5 7 4 Original expression for ( m0 + m3 + m5 + m7 + m4 ): x'y'z' + x'yz + xy'z + xyz + xy'z' Simplified expression: xy'z + y'z' + yz
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
