Adding headers to truth tables

I have made my truth table already, but I want to add headers such as: p, q, r, etc. I have about 8 columns, how do I make headers for each column?

Are you using Mathematica? There are different ways of making a truth table.

Most likely, you are using TableForm. You can see examples of how to use it in the documentation.

http://reference.wolfram.com/language/ref/TableForm.html

The “boolean” documentation is difficult to absorb, but everything you need is probably there.

I found the following template I developed a useful way to explain things to myself and to data science students.

– Mark

Sean
Excellent answer. But a college student in discrete math class will quickly be overwhelmed by matrix algebra, Boolean algebra and sets, lists (of vectors), arrays (lists of lists) and what not when all we need is the p’s and q’s and those simple story problems like the ones in the textbook. . . p, q . . . if p then q . . . if p and q then r . . . NOT p . . . a whole table of T (true) and F (false) . Becky goes to a party, and Bob is a vegetarian. If Becky meets Stan (who is Not a vegetarian) then Bob and Stacy will have dinner with Stan. Not.
In my case I have been working for some time trying to create a story problem for the classic Epsilon Delta definition of a limit You land on an island, meet “Epsilon” and “Delta” and ask the following question . . . Do you know the “Limit”?
Any thoughts?

In my opinion, discrete mathematics is under-taught, relative to, say, calculus.