All thanks for the excellent responses, this will be very helpful to the high school students. I have provided Ben's solution suggested above. I also think this more closely resembles what goes on in embedded systems. I do see a problem if people would like to use mixed logic in there expressions, such as, OR and AND.
Thanks Again,
-SS
Message Edited by ShotSimon on 01-20-2009 10:21 AM