# End of activity feedback screen

**URL:** <https://cl.desmos.com/t/end-of-activity-feedback-screen/4162>\
**Category:** Questions\
**Created:** [March 19, 2022, 1:48am UTC](https://cl.desmos.com/t/end-of-activity-feedback-screen/4162 "2022-03-19T01:48:28Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anne\_Guerriero](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/anne_guerriero/32/797_2.png) [@Anne\_Guerriero](https://cl.desmos.com/u/Anne_Guerriero)\
**Post date:** [March 19, 2022, 1:48am UTC](https://cl.desmos.com/t/end-of-activity-feedback-screen/4162/1 "2022-03-19T01:48:29Z")

</div>

I am trying to code an end-of-activity feedback screen for students with stop-lighting a la Daniel Wekselgreen’s Foundations Quiz #7 on a much smaller scale because I teach 7th grade and am not a master of CL. I am having trouble with the traffic lighting for screens 3 and 4 (which combine into 1 traffic light) and screen 5. Here is the link for my activity:  
[[[Absolute Value Assessment • Activity Builder by Desmos](https://teacher.desmos.com/activitybuilder/custom/62350a854c27e52dccc5cd4c)]

Thanks in advance for any assistance you can give!

---

<div class="post-metadata">

**Author:** ![pirsquared](https://avatars.discourse-cdn.com/v4/letter/p/4af34b/32.png) [@pirsquared](https://cl.desmos.com/u/pirsquared)\
**Post date:** [March 19, 2022, 10:13am UTC](https://cl.desmos.com/t/end-of-activity-feedback-screen/4162/2 "2022-03-19T10:13:43Z")

</div>

On your slides with the graphs, instead of `numericValue` for c\_orrectA and B, you need to use `this.number(`c_{orrectA}`)` and B instead. c\_orrectA isn’t known to the CL unless you bring it in via `this.number`.

`correct=this.number(`c_{orrectA}`)=1 and this.number(`c_{orrectB}`)=1`

Not that you asked, but on the graph activities I would be tempted to ‘lock in’ the y-coordinate so that students are only able to drag horizontally along the number line. Also, you may wish to add in a ‘gap’ check to make sure students don’t just drag both points to positive 7 or positive 5/2 - something like n\_otSame = {x\_1=x\_2: 0, 1} or similiar should do the trick.

---

<div class="post-metadata">

**Author:** ![Daniel\_Grubbs](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/daniel_grubbs/32/719_2.png) [@Daniel\_Grubbs](https://cl.desmos.com/u/Daniel_Grubbs)\
**Post date:** [March 19, 2022, 4:08pm UTC](https://cl.desmos.com/t/end-of-activity-feedback-screen/4162/3 "2022-03-19T16:08:14Z")

</div>

> [@pirsquared](#):
>
> Also, you may wish to add in a ‘gap’ check to make sure students don’t just drag both points to positive 7 or positive 5/2 - something like n\_otSame = {x\_1=x\_2: 0, 1} or similiar should do the trick.

I was thinking make a sorted list:

```auto
c_orrect= {total( { sort([x1,x2])-[-7,7]=0:1,0 } )=2: 1, 0}

```

(I actually tend to make correct = 0, so that my totals for correctness are always consistent without any extra manipulation, while most people use 0 as false and 1 as true.)

In addition, I would set y coordinates to 0 and limit the point drags to horizontal only.

---

<div class="post-metadata">

**Author:** ![Anne\_Guerriero](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/anne_guerriero/32/797_2.png) [@Anne\_Guerriero](https://cl.desmos.com/u/Anne_Guerriero)\
**Post date:** [March 20, 2022, 3:55pm UTC](https://cl.desmos.com/t/end-of-activity-feedback-screen/4162/4 "2022-03-20T15:55:59Z")

</div>

Thank you both so much! I don’t know what I would do without such a supportive community of Desmosians!

---

<div class="post-metadata">

**Author:** ![Anne\_Guerriero](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/anne_guerriero/32/797_2.png) [@Anne\_Guerriero](https://cl.desmos.com/u/Anne_Guerriero)\
**Post date:** [March 20, 2022, 6:00pm UTC](https://cl.desmos.com/t/end-of-activity-feedback-screen/4162/5 "2022-03-20T18:00:27Z")

</div>

> [@Daniel\_Grubbs](#):
>
> `c_orrect= {total( { sort([x1,x2])-[-7,7]=0:1,0 } )=2: 1, 0}`

So, I copied this into my graph and I am getting an error message about the brackets not matching. Should this be in the CL?

---

<div class="post-metadata">

**Author:** ![Anne\_Guerriero](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/anne_guerriero/32/797_2.png) [@Anne\_Guerriero](https://cl.desmos.com/u/Anne_Guerriero)\
**Post date:** [March 20, 2022, 6:01pm UTC](https://cl.desmos.com/t/end-of-activity-feedback-screen/4162/6 "2022-03-20T18:01:43Z")

</div>

NM–I typed one of the brackets in the wrong place! 😬
