CS235 Homework for Wednesday, Mar 18 1. What is the final value of x after each of the following execute? a) x = 7 x %= 2 b) x = 7 x += 1 c) x = 7 x *= 2 c) x = 7 x -= -5 e) x = 7.0 x /= 20.0 f) x = 7 x *= x + 1 2. For each of the following, give the result or explain why the action is illegal. a) a = (1, 2, 3) b) a = 1, 2, 3 c) a = (1, 2, 3) a[1] d) a = (1, 2, 3) a[3] e) a = (1, 2, 3) a[1] = 5 f) (a, b, c) = (1, 2, 3) g) a, b = (1, 2) h) (a, b) = (1, 2, 3)