Truth Evaluator:
- The program first takes a number of propositional variables (P1, P2... Pn) as an input.
- It then takes a statement involving these variables as an input.
- The program parses the statement and outputs "True" if the given assignment satisfies the sentence or "False" if it does not.
Truth Table Creator:
- The program first takes a statement involving variables P1, P2... as an input.
- It then creates a truth table for this statement and outputs it.
- The program then outputs whether the statement is a tautology, contradiction or contingency.