Question

Which of these lines of pseudocode will correctly test whether the person is over 21 and under 65? (1 point)
if age > 21 AND age < 65
if age > 21 OR age <65
if age < 21 OR 65
if age NOT = 21OR 65

Answers

There are no human answers yet.
Answered by GPT-4o mini
The correct line of pseudocode to test whether the person is over 21 and under 65 is:

**if age > 21 AND age < 65**

This condition checks that the age is greater than 21 and less than 65 simultaneously, which is the intended logic.

Related Questions