Write a program that will accept any boolean expression in two variables and wil
ID: 2971006 • Letter: W
Question
Write a program that will accept any boolean expression in two variables and will print out the truth table for that expression. Use || for or, && for and, and ! for not. Use -> for implication and <-> for biconditional.
For example, if the expression was:
!(p && q) <-> ( !p || !q)
Your program would print:
p q | !(p && q) <-> (!p || !q)
-------------------------------
T T | F T T T T F F F
T F | T T F F T F T T
F T | T F F T T T T F
F F | T F F F T T T T
Explanation / Answer
http://answers.yahoo.com/question/index?qid=20100601080211AAefsOY
Go to the link
Its related to ur question and will help u
(y)
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.