The compressed file truth_table_tutorial.zip contains all templates and code referenced within the article, and the brief Developer's Guide ( truth_tables_guide.pdf ) gives detailed instructions for some specific customization tasks. Try out the templates below by clicking on the appropriate thumbnail image.
The first template consists of a basic "truth table builder" for expressions in three variables. The Developer's guide explains how to make the following changes to this template:
The second template consists of a typical student-centered activity that one could make using the classes developed for this article. This template pulls a series of exercises from an external data file and challenges the student to supply the correct truth table. The program checks the student answer for correctness and provides feedback.
Instructions are given for changing the source code to make the exercise set internally defined rather than externally defined, if that is preferable. A brief discussion of how to use an XML data file for external definitions is included.