Login or Create an Account to view the mark scheme, comment, and add to a test
Consider the following array of four Cartesian co-ordinates called POINTS.
POINTS = [(3,7),(5,11),(1,2),(4,9)]
Consider the following pseudocode which draws a path connecting each point contained in the array POINTS.
i = 0 loop while i < 3 drawLine(POINTS[i], POINTS[i+1]) i = i + 1 end loop
A particular location at coordinate (7, 7) has been flagged as a private area. Augment the pseudocode above to always exclude coordinate (7, 7) and at the same time ensure any resultant path is continuous. The coordinate (7, 7) may occur in POINTS more than once.

Short Answer2 MarksShared
2 Uses8 Views0 Likes