In: Computer Science
|
Variables |
|
boolean gameLoss = false; |
|
int points = 15; |
|
boolean championship = false; |
|
Conditions: Evaluate then Indicate the truth value produced by the relational conditions and the joins. NOTE: Change in variable values do not carry over to next evaluation. |
Truth Value of Complex Conditions |
|
gameLoss && championship || points > 15 gameLoss && championship || points > 15 |
FALSE FALSE |
|
gameLoss && (championship == false) && (points >= 15) |
|
|
!(championship && gameLoss && (points > 30)) |
|
|
gameLoss = true; gameLoss & !(championship & (points != 15)) |
|
|
gameLoss ^ championship || (points == 15) |
|
|
points = 35; (gameLoss || championship) && (points > 29)) |
|
|
gameLoss & championship | (points == 43) |
|
|
!gameLoss | (championship ^ (points >= 15)) |
|
Variables |
|
int bowlGames = 9; |
|
double avgPrice = 3890.00; |
|
int maxQBWins = 6; |
|
Conditions: Evaluate then Indicate the truth value produced by the relational conditions and the joins. NOTE: Change in variable values do not carry over to next evaluation. |
Truth Value of Complex Conditions |
|
(maxQBWins > 2) && (avgPrice > 3000.00) | (++bowlGames >= 2) |
|
|
(bowlGames > 4) || (avgPrice >= 3890.00) && !(maxQBWins < 9) |
|
|
maxQBWins = 8 (bowlGames >= 4) & (avgPrice != 3890.00) || !(maxQBWins < 8) |
|
Variables |
|
boolean gameLoss = false; |
|
int points = 15; |
|
boolean championship = false; |
|
Conditions: Evaluate then Indicate the truth value produced by the relational conditions and the joins. NOTE: Change in variable values do not carry over to next evaluation. |
Truth Value of Complex Conditions |
|
gameLoss && championship || points > 15 gameLoss && championship || points > 15 |
FALSE FALSE |
|
gameLoss && (championship == false) && (points >= 15) |
FALSE |
|
!(championship && gameLoss && (points > 30)) |
TRUE |
|
gameLoss = true; gameLoss & !(championship & (points != 15)) |
TRUE |
|
gameLoss ^ championship || (points == 15) |
TRUE |
|
points = 35; (gameLoss || championship) && (points > 29)) |
FALSE |
|
gameLoss & championship | (points == 43) |
FALSE |
|
!gameLoss | (championship ^ (points >= 15)) |
TRUE |
|
Variables |
|
int bowlGames = 9; |
|
double avgPrice = 3890.00; |
|
int maxQBWins = 6; |
|
Conditions: Evaluate then Indicate the truth value produced by the relational conditions and the joins. NOTE: Change in variable values do not carry over to next evaluation. |
Truth Value of Complex Conditions |
|
(maxQBWins > 2) && (avgPrice > 3000.00) | (++bowlGames >= 2) |
TRUE |
|
(bowlGames > 4) || (avgPrice >= 3890.00) && !(maxQBWins < 9) |
TRUE |
|
maxQBWins = 8 (bowlGames >= 4) & (avgPrice != 3890.00) || !(maxQBWins < 8) |
TRUE |