**Code 1.**

IF ((x ≥ 0) AND (y ≥ 0)) OR ((x < 0) AND (y < 0)) THEN "1st or 3rd quarter" ELSE "2nd or 4th quarter"

To complete the second step, note that the basic measurements of every rectangle are known, with a height and width equal to 1.5 and <sup>√</sup>3/2 , respectively. Then, the CB rectangle is involved

whenever the integer part of *x* and *y*, are both even or both odd. Otherwise, the AB rectangle is involved. See Code 2 to clarify this step.
