Franck's answer is better (using ~), but I just wanted to point out that the conditional in yours is slightly redundant. It's easy to forget that, since you already have a boolean value, you don't need to perform a comparison in your conditional. So you could have just done this...
<span>if x
x = false;
else
x = true;
<span>end</span></span>
Where do you need help? Where did you get lost?
Answer:
The correct option is;
B
Step-by-step explanation:
The given system of inequalities are;
5·x - 4·y > 4...(1)
x + y < 2...(2)
Representing both inequalities as a function of "y", gives;
For, 5·x - 4·y > 4...(1), we have;
-4·y > 4 - 5·x
y < 4/(-4) - 5·x/(-4)
∴ y < 5·x/4 - 1
For x + y < 2...(2), we have;
y < 2 - x
Therefore, y is less than the values given by the equation of the straight line equalities, and the feasible region is given by the common region under both dashed lines representing both inequalities as shown in the attached diagram created using Microsoft Excel
The correct option is therefore, B.
Answer:
1/19
Step-by-step explanation:
Answer:
sorry I'm not sure how to help with that yet