Answer:

Using the De Morgan Rule

!(A && B && C) is equivalent to !A || !B || !C

The expression

boolean noDriving = !(daylight && passenger.age >= 21  && passenger.licensed );

is equivalent to

boolean noDriving = !daylight || !(passenger.age >= 21) ||  !passenger.licensed ;

which can be further transformed to

boolean noDriving = !daylight || passenger.age < 21 ||  !passenger.licensed ;

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

Unless you are not interested or don't have time, you may wish to review the following.

You have reached the end of the chapter.

go to previous page   go to home page