74.7k views
4 votes
Write an expression that evaluates to true if and only if value of the boolean variable isAMember is false.

User Borncrazy
by
4.6k points

1 Answer

3 votes

Answer:

!isAMember

Step-by-step explanation:

isAMember is a boolean variable. It can have values true or false. We need to create an expression whose value is true if and only if isAMember is false.

For this we use the NOT or negation operator (!). If isAMember is false !isAMember will be true and conversely if isAMember is true !isAMember will be false. So !isAMember satisfies the required condition for evaluation to true.

User Bids
by
5.8k points