## Invitation to Computer Science 8th Edition

Published by Cengage Learning

# Chapter 4 - 4.3 - Boolean Logic and Gates - Practice Problems - Page 187: 3

#### Answer

$(x=5)$ $AND$ $(y=11)$ $OR$ $([x+y]=z)$ $True$ $AND$ $False$ $OR$ $True$ We now must make an assumption about which of the two logical operations to do first, the $AND$ $OR$ the $OR$. If we assume the $AND$ goes first, then we get $False$ $OR$ $True$ $True$ If we assume that the $OR$ goes first, then the expression would be evaluated as follows: $True$ $AND$ $True$ $True$ In this case, the answer is the same, but we arrive at the answer in different ways.

#### Work Step by Step

$(x=5)$ $AND$ $(y=11)$ $OR$ $([x+y]=z)$ $True$ $AND$ $False$ $OR$ $True$ We now must make an assumption about which of the two logical operations to do first, the $AND$ $OR$ the $OR$. If we assume the $AND$ goes first, then we get $False$ $OR$ $True$ $True$ If we assume that the $OR$ goes first, then the expression would be evaluated as follows: $True$ $AND$ $True$ $True$ In this case, the answer is the same, but we arrive at the answer in different ways.

After you claim an answer you’ll have 24 hours to send in a draft. An editor will review the submission and either publish your submission or provide feedback.