Guaranteed that weight of a cookie 100 grams with an error of at most 2 grams.
The actual weight of a cookie is W gram.
So Difference between W and 100 is 2
i.e. value of W will satisfy the conditions that W ≥ (100-2) and W ≤ (100+2)
=> 100-2 ≤ W ≤ 100+2
=> -2 ≤ W - 100 ≤ 2
=> | W - 100 | ≤ 2
This is the required condition
Comments
Leave a comment