Deleted.

cromarko:

This is what I am looking for. My truth table is wrong, I followed all the instructions but the parts that are in blue for N-S are actually not right. I have no problems with the Arduino but since my logic isn't right in the Sketch, I am at possibility of failing the assignment.

Can someone help me with the truth table?

This is not showing that you attempted the question to the best of your ability. Best of your ability means writing down your thinking --- your reasoning for putting those values into those areas that you did. This means..... systematically and methodically writing each 'rule' (eg. label or number each rule from the assignment), then showing how or why you chose each row of your truth table. Simply plonking down a bunch of values into the truth table without conveying reasoning/logic is a poor approach.

6v6gt is showing you at a systematic/methodical approach.