Then we talked about compound Boolean expressions which sound more fearsome than they are. Compound Booleans or, if you'd prefer, compound conditionals, are just a simpler way to write what would otherwise be a series of nested if...else statements. Suppose we're trying to find people who are between the ages of 18 and 65 then we could write:
if(age >= 18)
if age( <= 65)
System.out.println("You're in the right age group.");
But wouldn't it be simpler to write:
if((age >= 18) || (age <= 65))
System.out.println("You're in the right age group.");
In terms of hands on work we/you wrote the Discriminant application on p108 and Hurricane on p109. Discriminant supports the use of nested if...else and the idea that we can test for negative numbers by testing for less than zero. Hurricane gives practice using the switch statement.
If you haven't already, once those two are done, go on to do Delivery on p112. Delivery involves the use of compound Boolean expressions.
I forgot to ask you to do homework (bad teacher!) so if you're feeling all keen and want to get ahead, then do p121, Qs 1, 2, 3, 4b, 5 and 6 to really lock in your understanding of conditionals. Otherwise expect to do these questions on Monday night.