A good answer might be:Yes. |
Boolean Expressions with Mixed AND and OR
Parentheses are used to group the two relational expressions that are to be anded.
(Since && has higher precidence than ||, the parentheses are not actually needed,
but don't hurt.)
The following expression is not equivalent:
When boolean expressions contain both && and || correct grouping is important.( cash >= 25000 || credit >= 25000 ) && debt < 1000 |
QUESTION 14:Use the (incorrect) boolean expression above to answer this question: You have $50,000 in cash, $100,000 of credit, and $3,000 of debt. Can you buy the car? Click Here after you have answered the question |