I want the student to enter the Y-intersect point in a table in math mode:
( x-val, y-val)
How can I extract the student input in order to evaluate and compare with the correct answer ?
Thanks
I want the student to enter the Y-intersect point in a table in math mode:
( x-val, y-val)
How can I extract the student input in order to evaluate and compare with the correct answer ?
Thanks
You could use parseOrderedPair to extract the student’s x and y coordinates.
studentPoint = parseOrderedPair(this.cellContent(1,1))
xCoordinate = numericValue(studentPoint.x)
yCoordinate = numericValue(studentPoint.y)
xCoordinate = numericValue(parseOrderedPair(this.cellContent(1,1)).x)
yCoordinate = numericValue(parseOrderedPair(this.cellContent(1,1)).y)
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.