Drag and Drop Help

Hello:

I only want the check mark label to appear when the point is on (0,-5). Can anyone help with the code?

Thanks!!!

You’re so close! You just need to add a piecewise statement at the end of the ordered pair that tells it to display when C_{orrect} = 1.

It will be a little difficult for students to get the location precisely at (0,-5), especially if they aren’t using a mouse. You could add a tolerance to the intended location. This should display the check if both a and b are within 0.05 of the correct values. I arbitrarily chose those values, so adjust as you would like.

1 Like

Thank you so much!!!