Assume grade is an int variable. Which of the following is equivalent to !(grade < 90)?

Group of answer choices

!grade >= !90

grade > 90

grade <= 90

grade >= 90

!grade > !90

1 answer

To find the expression that is equivalent to !(grade < 90), we need to analyze the logical meaning behind the expression.

The expression !(grade < 90) means "it is NOT true that grade is less than 90." This can be rewritten using the rules of logic:

  1. If grade < 90 is false, it implies that grade is not less than 90. Therefore, the only other possibilities for grade are:
    • It is equal to 90, or
    • It is greater than 90.

This translates into the logical expression:

  • grade >= 90

So, the expression that is equivalent to !(grade < 90) is:

grade >= 90

Thus, the correct choice from the options provided is:

grade >= 90