1. Given two single-pole switches, write a program that will turn on an output when both switch A and switch B are closed.
2. Given two single-pole switches, write a program that will turn on an output when either switch A or switch B is closed.
3. Given four NO (Normally Open) pushbuttons (A-B-C-D), write a program that will turn a lamp on if pushbuttons A and B or C and D are closed.