You are correct with that answer
Answer:
90.
Step-by-step explanation:
We have two lines of code:
y ← x + x + x + x + x
z ← y + y + y
and, x=6 before the execution. Then, when the program starts to run we obtain:
y ← 6 + 6 + 6 + 6 + 6
y ← 30
z ← 30+30+30
z ← 90.
Then, the value of z after excecution is 90.
I’m not the best with words but first you would have to treat the greater sign as a = sign. So..
-2x =6
/ /
-2 -2
X = -3
and then you would change the sign to a less than sign because you divided by a negative.
Solve the top equation for x and then substitute that into the bottom equation and solve for y:
Top equation: subtract 4 from both sides to get x = y - 4
Substitution and simplify:
y = 4(y - 4) - 10
y = 4y - 16 - 10
y = 4y - 26
-3y = -26
y = 26/3 or 8 1/3 or 8.333 (those are all the same but in different forms)
Answer:
I believe it's C
Step-by-step explanation: