Expressions Evaluate eachof the following expressions a 4 2

Expressions: Evaluate eachof the following expressions.

a) 4 + 2 > 5 % 4

b) 5 < 6 || 6 > 4 || 4 > 5

c) 8 -­ 3 * 3 > 0

d) (51 / 12 – 4) * 2 == 0

e) 5 < 9 && (true != false)

Solution

a) 5 % 4 = (5/100)* 4 = 20/100 = 0.2 . Also, 4 + 2 = 6. Therefore the statement 4 + 2 > 5 % 4 is true

b) 6 > 4 means that 4 < 6. Now 5 < 6 and 4 < 6 does not imply that 4 > 5. The statement is false.

c) 8 - 3 *3 = 8 - 9 = -1 which is less than 0. Thus the statement that 8 - 3*3 > 0 is false.

d) (51/12 - 4) * 2 = 51/6 - 2 = (51 - 12) /6 = 39/6 = 13/2 which is not equal to 0. Therefore, the statement   (51/12 - 4) * 2 = 0 is false.

e) 5 < 9 . The statement is obviously true.

Expressions: Evaluate eachof the following expressions. a) 4 + 2 > 5 % 4 b) 5 < 6 || 6 > 4 || 4 > 5 c) 8 -­ 3 * 3 > 0 d) (51 / 12 – 4) * 2 == 0 e

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site