|
A good answer might be:No, you can't buy the car (at least that is what the incorrect boolean expression says.) |
Incorrect ParenthesesYou have $50,000 in cash, $100,000 of credit, and $3,000 of debt. Here is how the incorrect expression is evaluated:
The correctly grouped expression,
immediately evaluates to true.cash >= 25000 || ( credit >= 25000 && debt < 1000 ) Here is another problem: a program screens job applicants. An applicant is accepted for an interview only if the applicant meets two conditions:
|
QUESTION 15:Put parentheses in this boolean expression so that it correctly tests applicants:
Click Here after you have answered the question
|