boolean values the true story ;=p. expressions

Post on 18-Jan-2016

235 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

Boolean ValuesThe true story

;=P

Expressions

Relational Operators

Relational Operators

Relational Operators

Logical Operators

Truth Tables

Logical Operators

Logical Operators

Precidence

Logical Operators Exercise 1 Elbow Pairs

Logical Operators Exercise 2

Boolean Algebra

de Morgan’s Law Version 1

de Morgan’s Law Version 2

de Morgan’s Law

de Morgan’s Law

What to do?O Statement a= your Practice Its are completeO Statement b = you have an A if (!(a) || !b) { System.out.println(“Let’s get busy NOW”); }else if !(a ||b) { System.out.println(“You Have Work To Do, so get busy.”);} else

System.out.println(“Program the game Pig”);

top related