## Truth Tables and De Morgan's Rules

Read this chapter, which discusses Boolean variables as used in decision tables. Truth tables are used to collect variables and their values relative to decisions that have to be made within control structures.

### 19. Not at the Beginning and Not in the Middle of the Chapter

Answer:Using the De Morgan Rule!(A && B) is equivalent to !A || !B || !CThe expressionboolean noDriving = !(daylight && passenger.age >= 21  && passenger.licensed );is equivalent toboolean noDriving = !daylight || !(passenger.age >= 21) ||  !passenger.licensed ;which can be further transformed toboolean noDriving = !daylight || passenger.age < 21 ||  !passenger.licensed ;

# Not at the Beginning and Not in the Middle of the Chapter

If you are not interested or do not have the time, you may not wish to review the following.