Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

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)

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote