Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
19
Task/Truth-table/00-TASK.txt
Normal file
19
Task/Truth-table/00-TASK.txt
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
A [[wp:Truth table|truth table]] is a display of the inputs to, and the output of a Boolean function organized as a table where each row gives one combination of input values and the corresponding value of the function.
|
||||
|
||||
|
||||
;Task:
|
||||
# Input a Boolean function from the user as a string then calculate and print a formatted truth table for the given function.<br> (One can assume that the user input is correct).
|
||||
# Print and show output for Boolean functions of two and three input variables, but any program should not be limited to that many variables in the function.
|
||||
# Either reverse-polish or infix notation expressions are allowed.
|
||||
|
||||
|
||||
;Related tasks:
|
||||
* [[Boolean values]]
|
||||
* [[Ternary logic]]
|
||||
|
||||
|
||||
;See also:
|
||||
* [http://mathworld.wolfram.com/TruthTable.html Wolfram MathWorld entry on truth tables].
|
||||
* [http://www.google.co.uk/search?q=truth+table&hl=en&client=firefox-a&hs=Om7&rls=org.mozilla:en-GB:official&prmd=imvns&tbm=isch&tbo=u&source=univ&sa=X&ei=C0uuTtjuH4Wt8gOF4dmYCw&ved=0CDUQsAQ&biw=941&bih=931&sei=%20Jk-uTuKKD4Sg8QOFkPGcCw some "truth table" examples from Google].
|
||||
<br><br>
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue