Lecture Notes on 25 Jun 2012 if (x > y) { if (x < y) { z = 1; } else { z = 2; } } else { z = 3; } int month = x; switch (month) { case 1: case 3: case 5: case 7: case 8: case 10: case 12: System.out.println ("31 days"); break; case 4: case 6: case 9: case 11: System.out.println ("30 days"); break; case 2: System.out.println ("28 days"); break; default: System.out.println ("Not valid month"); break; } Default variables int num; char ch; * Write a boolean expression that evaluates to true if num is even. (num % 2 == 0) * Write a boolean expression that evaluates to true if num is in the range 1 through 100 inclusive. (num >= 1) && (num <= 100) * Write a boolean expression that evaluates to true if num is not in the range 1 through 100 inclusive. (num < 1) || (num > 100) * Write a boolean expression that evaluates to true if ch is a lower case letter. (ch >= 'a') && (ch <= 'z') * Write a boolean expression that evaluates to true if num is a four digit number that is divisible by 6. (num >= 1000) && (num <= 9999) && (num % 6 == 0) (year % 400 == 0) || ((year % 100 != 0) && (year % 4 == 0))