Hello! I want to have students input coordinates (simple x and y) and have those show up on a graph next to the table, and check on submission. Is that possible? I’ve had experience building a check on submission before, but moving those points to a graph is proving to be confusing. https://classroom.amplify.com/activity/697272c12f0a906a63d4114a?utm_campaign=share&utm_content=activity
wait nevermind, i misunderstood
Hi William, welcome to the forum!
Is this something like what you’re looking for?
I have it giving feedback through a little text box on the bottom as well as marking it as correct on the teacher dashboard. Additionally, it checks whether all the x-values are unique (to keep from putting in the same x/y pair). You should be able to see the CL that’s going on in the background if you copy and edit this activity.
I will note that I’ve assumed that the table length will be 4 (just change the 4s on line 10 in the table1 CL (pictured below) to whatever number of points you want them to input and increase/decrease the size of the table accordingle).
Additionally, in the Desmos plot, I have the line as f(x). K_y is a list in the Desmos plot which contains the calculated answers based on the input x-values and the function f(x).
Thank you so much! This is exactly what I was looking for!
FYI, there is a .all() list function (and an .any()) that checks booleans instead of having to use that .reduce():
y_values_match_x_values = input_y.all(val, ind) => key_y[ind] = val )
Thanks, great catch! I always forget which data types have those convenience functions, that cleans up some unnecessarily complicated code. I’ve updated the activity using that.
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.

