Answer:

    if (  cash < price )

You (hopefully) picked a relational expression that was true when the user COULDN'T pay for the sweater.

Opposites

Notice that in the first program, the boolean expression was:

    if (  cash >= price )

because we wanted the true branch to execute when the user had enough money. In the second program, the boolean expression was:

    if (  cash < price )

because we wanted the false branch to execute when the user had enough money. Notice that the first operator includes the "equals" case, and that the second one does not.

So, in a sense >= and < are opposite of each other. Sometimes it is convenient to rearrange the contents of the true and the false branch. But be sure to change the boolean expression correctly!

QUESTION 9:

What is the "opposite" of   <= ?