49,840 views
33 votes
33 votes
In a certain country, a person must be at least 16 years old to drive a car and must be at least 18 years old to vote. The variable age represents the age of a person as an integer. Which of the following expressions evaluates to true if the person is old enough to drive but not old enough to vote, and evaluates to false otherwise?

I. (age ≥ 16) AND (age ≤ 18)
II. (age ≥ 16) AND (NOT(age ≥ 18))
III. (age < 18) AND (NOT(age < 16))

User Azabella
by
3.2k points

1 Answer

18 votes
18 votes

Answer:

i. (age >= 16) AND (age <= 18)

Step-by-step explanation:

What the statement means is that it will only be true if the person is older than or 16 and younger than or 18.

That means that if either one is not true, the entire statement won't be either, as it requires both to be true to work.

The other 2 statements use NOT which changes the value. This means that if someone is less than 18, which is supposed to be true, the not statement will change it so that it's not.

I hope this makes sense :)

User Lata
by
2.7k points