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.
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
16 Uses20 Views2 Likes
Login or Create an Account to view the mark scheme, comment, and add to a test