Boolean Symbols and Expressions

One more example: consider the statement:

We can drink coffee or tea and not eat any donuts, or just drink coffee.

This statement sounds quite odd and abstract, but we can still express it with a Boolean expression. If we denote $x = \;($"$\text{drink }$$\text{coffee}$"$)$, $y = \;($"$\text{drink }$$\text{tea}$"$)$, and $z = \;($"$\text{eat }$$\text{donuts}$"$)$, the statement can be expressed as: $(x + y)z' + x$.

Building (x + y)z' + x using logic gates.

Building (x + y)z' + x using logic gates. Miriam Briskman, CC BY-NC 4.0.