A logical operator is an operator that returns a Boolean value.
NOT(!) is a logical operator that returns the opposite value of the condition.
!hasPaint() returns true if hasPaint() returns false, returns false if hasPaint() returns true.
A two-way selection statement specifies a block of code to execute when the condition is true and a block of code to execute when the condition is false.
