Consider the following procedure. Procedure Call Expla…
Consider the following procedure. Procedure Call Explanation drawLine (x1, y1, x2, y2) Draws a line segment on a coordinate grid with with endpoints at coordinates (x1, y1)and (x2, y2) The drawLine procedure is to be used to draw the following figure on a coordinate grid. The numbers 1 through 8 are indicated on both axes. All three segments have an endpoint at 1 comma 5. The other endpoints for each segment are as follows. Segment 1: 6 comma 5. Segment 2: 6 comma 7. Segment 3: 6 comma 3. Let the value of the variable xVal be 6 and the value of the variable yVal be 5 . Which of the following code segments can be used to draw the figure?
Read Details