derive a truth table for a given logic circuit
construct the truth table for each of the logic gates above