home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Hacker Chronicles 2
/
HACKER2.BIN
/
078.TRUTH.DOC
< prev
next >
Wrap
Text File
|
1989-08-26
|
4KB
|
84 lines
TRUTH TABLE MAKER Version 1.20
Author: 2LT Michael P. Kelly, U.S. Army
Copyright (c) 1989.
All Rights Reserved.
-----------------------------------------------------------------
This program is hereby placed in the public domain. Feel free to
use it and pass it around provided:
1. You do not alter the program or associated files in any
way. (see DISCUSSION below)
2. You do not charge anything for distribution of this
program except for copying or disk expense.
NEW FEATURE(S):
1. Printer support was added for printing the truth tables
so that you may hand them in for homework instead of <shift-
prtscr>ing each screenful.
2. Fixed stack overflow problem with long boolean
expressions.
3. Sorted variable output on screen and printout displays.
INTRODUCTION:
I wrote TTM to generate boolean algebra truth tables in my
digital design and electronics courses. It eliminates the boring
and sometimes tedious task of having to do it yourself by
scratch. Some of the expressions can get rather complicated and
large. There are shortcuts, of course, but why bother when this
program will do it for you in the wink of an eye, right?! Then
you can reduce the expression yourself or whatever you chose to
do.
Many courses require you to turn in truth tables as part of
your homework or labs. This program will handle that for you or
at least check out your answers for you. I have tried TTM on
all the problems I have seen in my 2 textbooks on Digital
Computer Design and it has evaluated them all successfully.
It took me two evenings to write TTM. Just in time to help
me with some Digital Design homework, which was the purpose
behind writing it. TTM is simple to use. It has no popup menus
or windows, no GUI to impress, no mouse support, etc. It doesn't
need any of those to perform its simple tasks.
I have tested this program extensively, however, I am sure
that someone will attempt to purposely crash this program and
call me back and say "Hey, it doesn't work, this program sucks,
it's garbage!" This sort of individual is the kind of person who
will always try to push a button when the sign says "DO NOT PUSH
THIS BUTTON", or go down the up escalator, etc. You know the
type!
Maybe, if I ever get any free time, I will add the
generation of min and maxterms, Karnaugh maps, Sum-of-Products to
Product-of-Sums and vice-versa conversion, expression
simplification. But as things stand now, I do not see that
happening anytime soon. If someone out there can give me some
hints at adding the above features using some shortcuts, by all
means send me the hints on CompuServe 73747,420!
DEVELOPMENT:
Truth Table Maker was written in Turbo C 2.0 using Turbo
Debugger to track down a few initial bugs. Both these products
are excellent and well worth having!
If you any thoughts on algorithms for adding the production
of Karnaugh Maps, simplification, etc., by all means let me know
and I will give you credit for it when I add it to the program.
DISCUSSION:
If you like this program and actually use it for a course or
project, please leave me some Email on Compuserve. It is always
nice to know that someone else uses your work! Comments,
suggestions for improvements or bugs (egads!) can be send to:
Michael P. Kelly
73747,420
* EOF: Truth.doc