# Score for correct answers after each problem

**URL:** <https://cl.desmos.com/t/score-for-correct-answers-after-each-problem/2878>\
**Category:** Questions\
**Created:** [March 10, 2021, 4:01am UTC](https://cl.desmos.com/t/score-for-correct-answers-after-each-problem/2878 "2021-03-10T04:01:23Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Elyse.Carmack](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/elyse.carmack/32/2560_2.png) [@Elyse.Carmack](https://cl.desmos.com/u/Elyse.Carmack)\
**Post date:** [March 10, 2021, 4:01am UTC](https://cl.desmos.com/t/score-for-correct-answers-after-each-problem/2878/1 "2021-03-10T04:01:23Z")

</div>

> **[Product and Quotient Rule Practice • Activity Builder by Desmos](https://teacher.desmos.com/activitybuilder/custom/60482eb82452323561962282)**
>
> by Elyse Carmack

I have tried to put a score on the bottom of slide 16 and have no clue what to do.

I want the students to answer a question and see how many they have gotten right or wrong.

Do any of you have any ideas?

Thank you so much in advance 🙂

---

<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 10, 2021, 4:25am UTC](https://cl.desmos.com/t/score-for-correct-answers-after-each-problem/2878/2 "2021-03-10T04:25:39Z")

</div>

You can use a capture in your button, conditionally 1 or 0, using your same correctness check that you have in your note:

```auto
capture(`score`): when correctConditionsHere 1 otherwise 0

```

Then, make a list in your graph CL:

```auto
numberList(`S`): button0.history(`score`)

```

You can then use `total(S)` in the graph for final count. Use `length(S)` for questions attempted.

If you want to clear the input box, I’d also add:

```auto
resetOnChange: "${button0.pressCount}"

```

Not sure if `resetLabel:` in your button is necessary.

---

<div class="post-metadata">

**Author:** ![Elyse.Carmack](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/elyse.carmack/32/2560_2.png) [@Elyse.Carmack](https://cl.desmos.com/u/Elyse.Carmack)\
**Post date:** [March 10, 2021, 5:11am UTC](https://cl.desmos.com/t/score-for-correct-answers-after-each-problem/2878/3 "2021-03-10T05:11:24Z")

</div>

> [@Daniel\_Grubbs](#):
>
> `correctConditionsHere`

Thank you for the response!  
I tried to fill out what you were saying and it was marking it wrong for the button with the correctConditionHere.  
(Do I have to label something that title?)

> **[Unit 6 Product and Quotient Rule Practice • Activity Builder by Desmos](https://teacher.desmos.com/activitybuilder/custom/60482eb82452323561962282)**
>
> by Elyse Carmack

---

<div class="post-metadata">

**Author:** ![SandiG](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/sandig/32/1895_2.png) [@SandiG](https://cl.desmos.com/u/SandiG)\
**Post date:** [March 10, 2021, 5:52am UTC](https://cl.desmos.com/t/score-for-correct-answers-after-each-problem/2878/4 "2021-03-10T05:52:34Z")

</div>

Yes @Elyse.Carmack, you should be replacing that with whatever your `correct:` condition is for your slide.

---

<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 10, 2021, 7:14am UTC](https://cl.desmos.com/t/score-for-correct-answers-after-each-problem/2878/5 "2021-03-10T07:14:41Z")

</div>

Whatever conditions you used to determine correctness to display the graph should be placed there. It was a placeholder not a variable or anything.
