Truth table: Difference between revisions

No change in size ,  4 years ago
m
no edit summary
mNo edit summary
Line 1:
{{task}}
 
A [[wp:Truth table|truth table]] is a display of the inputs to, and the output of a Boolean equationfunction organisedorganized as a table where each row gives one combination of input values and the corresponding value of the equationfunction.
 
 
;Task:
# Input a Boolean equationfunction from the user as a string then calculate and print a formatted truth table for the given equationfunction.<br> (One can assume that the user input is correct).
# Print and show output for Boolean equationsfunctions of two and three input variables, but any program should not be limited to that many variables in the equationfunction.
# Either reverse-polish or infix notation expressions are allowed.
 
Anonymous user