Question: in C + + plz Problem 3 - Filename: BoolSimplify Write a program to simplify Boolean expressions. Input from the keyboard a string representing a

in C ++ plz Problem 3- Filename: BoolSimplify
Write a program to simplify Boolean expressions. Input from the keyboard a string representing a valid Boolean expression with spaces between the capital letters. Assume proper input. The only valid operators are [+,*,] representing OR, AND, and NOT, and valid input characters are [A, B,+,*,10]. The expression will contain at most three operands, three operators and one set of parentheses. Use the following list of fundamental Boolean identities for simplification:
Commutative Law
Associative Law
Idempotent Law
3
COSC2425F24
Annihilator Law
Identity Law
Complement Law
Absorptive Law
DeMorgan's Law
Double Negation
Output to the screen the simplified equivalent of the given expression. Simplify means outputting the fewest operators with no parentheses. Finally, the program should ask if the user wants to run the program again (Check case). Refer to the sample output below.
Sample Run:
Expression: (A + B)
Simplified: A * B
Run again (YN : Y
Expression: A * A +1
Simplified: 1
Run again (YN : y
Expression: 0+ A * B
Simplified: A * B
Run again (Y/N): nIn
in C + + plz Problem 3 - Filename: BoolSimplify

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!