Please help, I’m in way over my head. I manage some simple computation layer coding, but this is too much!
On screen 12, I would like to take the student table input (x, y, z) coordinates and put them into the distance formula to quickly check their answers during the activity. I am not sure how to do this.
I’m sure you’ll definitely get better answers from others if you are patient, but here is what I can do.
I wasn’t exactly sure where you were wanting to pull coordinates from, but I did work on screen 11. After students put in x, y, and z coordinates into table11 the hidden graph (g11) will calculate the distance. When they input and submit their answer into the math response box, feedback will appear to let them know whether their answer matches what the graphing component calculated. This doesn’t check to see if they converted the latitude and longitude correctly - only if the distance between the x, y, and z coordinates they put into the table is correct.
Maybe you can use some of these ideas on your other screens if this isn’t exactly what you were looking for…?
I did something similar … and when I came back to post Scott had already answered …
The difference is that I didn’t use an extra graph to calculate the distance.
On slide 11 when you write some values for the coordinates of the points … you get the distance:
That is pretty cool. I’ve always used hidden graphing components to define functions, perform evaluations, etc. I didn’t realize that you could do all that you’ve done here in just the CL of a note component. It’s awesome to see and learn from everyone else’s work!
This is also what I would’ve done. My only recommendation is, in general, I think it’s better to perform calculations within the same component as the information. In your activity, you could also use it to define the table’s correct: sink for the dashboard. The note’s CL, after moving the calculations to the table, would become:
content: "distance = ${t1.script.v}"
Anything you might do to define a variable can be performed within ${} including conditional statements, as long as it’s an appropriate output.
Thank you! I have incorporated that into the lesson, but I’d like for me to be able to see the distance, but the students to compute the distance and input their answers. Is there a way to have the answer hidden from students, but visible on the dashboard?
I don’t think there is a solution for that, also because the distances that the teacher would need to see, would be different for each student.
What the teacher can see is if the student got the distance right.
if by dashboard you mean the whole activity all at once, you could probably abuse warning by populating its tooltip with the coordinate data. would require hovering over the warning to reveal the content though.
On the other hand you mean to just look at one screen but for all students at once, you could easily do this by simply having a hidden element(say a note) with the contents simply that of the coordinates. Would show in your dashboard for every student once you focus on a screen.
Maybe the better question is what are you trying to accomplish by knowing the distance answer? Might be a better way to achieve this…