You are here

Examples

6 February, 2015 - 16:03

I call this example of why I hate "and" and love "or".

Everyday as I came home from school on Monday through Thursday; I would ask my mother, "May I go outside and play?" She would answer, "If your room is clean and your homework is done then you may go outside and play." I learned to hate the word "and". I could manage to get one of the tasks done and have some time to play before dinner, but both of them... well, I hated "and".

On Friday my mother took a more relaxed view point and when asked if I could go outside and play she responded, "If your room is clean or your homework is done then you may go outside and play." I learned to clean my room quickly on Friday afternoon. Well needless to say, I loved "or".

For the next example, just imagine a teenager talking to their mother. During the conversation mom says, "After all, your Dad is reasonable!" The teenager says, "Reasonable. (short pause) Not."

Maybe college professors will think that all their students studied for the exam. Ha ha! Not. Well, I hope you get the point.

Exercise 12.2.1

Evaluate the following Logical Boolean expressions:

  1. 25 < 7 II 15 > 36
  2. 15 > 36 II 3 < 7
  3. 14 > 7 &&5 <= 5
  4. 4 > 3 && 17 <= 7
  5. ! false
  6. !(13 != 7)
  7. 9!= 7 && !0
  8. 5 > && 7