Login or Create an Account to view the mark scheme, comment, and add to a test
Consider the following array of 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.
[2]
drawLine((3,7),(5,11)) drawLine((5,11),(1,2)) drawLine((1,2),(4,9))
Rewrite the pseudocode above to achieve the same functionality both iteratively and more generally, such that POINTS may contain any four coordinates, each of the form (a, b).

Short Answer2 MarksCommunity
19 Uses44 Views3 Likes