I am Mr Chow
  • Blog
  • Breakout! Desmos
  • Desmos Activities
  • Lessons

Multiple Questions with Random Numbers

9/16/2018

5 Comments

 

First of all...

I apologize to everyone for the recent lack of new breakout activities or CL webinars.  I'm looking forward to finding some time to work on both soon. In the meantime I thought it would be fun to share some of the most requested things I've encountered while working with teachers and their CL journey.  I'll do this from time to time when I have a few minutes and hopefully you can find it useful.

Before you go any further, try this out:

This activity uses the random generator to create different questions, counting the number of correct answers on a single screen!  It doesn't have to be an addition problem, in fact you can use random numbers to ask basically any question that you can determine correctness for.  If you want to learn how to make something like this, read on. 

This activity can be made in three steps with the use of random numbers, piecewise functions, and capture.  If you are familiar with these you can skip to the end and see how its put together.  Click here to skip.

Random Numbers

The Desmos Computation Layer has an excellent random number generator that can produce random numbers under a variety or circumstances. Check out a few examples below.
the random generator can be made to seed a value once or whenever a specified seed value changes.  Random numbers can also be integers or decimal values.  For more information on how to use the randomGenerator function, visit the computation layer documentation.

Determining Correctness

A piecewise function is used to set up a condition and then output the result. In the first expression below, the function f(x)=sin(x)+1 is graphed between -3π and 3π and f(x)=1 otherwise.
piecewise functions can also be used to output numeric values when given certain conditions.  Try moving the blue point into the circle and observe how the value changes.  You can make a variable like this "I" value to equal one when a correct answer is typed (not necessarily submitted) and zero when it is not.

Capture

Capture saves a numeric value when you press a button or submit an answer. 
Picture
That value can be recalled either as a number or a list of each of the captured values.
Picture

 

Create Your Activity:

  1. Create your random variables.
    1. What will change from question to question?
    2. Set the parameters to what you want and create the variables in the graph
  2. Create the condition for correctness.
    1. Use a piecewise function to set the conditions.
    2. Have the piecewise function output a value of 1 if the conditions are met and 0 if they are not.
  3. Capture and count your correct answers.
    1. Set up a capture in your submission method (expression input, table, etc) to capture the output of the correctness function.
    2. Create a number list using the history of the capture sink.
    3. Total the list. This value will be the total correct answers.
Picture
Picture
Picture
Picture
Picture

Quick Note on Timing:

If you want a new problem to be presented whenever an answer is given, correct or incorrect, you can set the seeding value of the random number to "submitCount"

If you want a new problem only when a correct answer is given use the correct answer total. You'll need to make sure the value of that variable is zero before the answer is submitted once.

Stuck?

Want to create an activity like this but don't have any ideas?  Check out these samples.  The links to the activities are included below for those that want to look under the hood.
https://teacher.desmos.com/activitybuilder/custom/5b9f5907a772a80b40487a2b

https://teacher.desmos.com/activitybuilder/custom/5b9eeb71d7a4400b3b9a63b5
5 Comments

    Archives

    October 2020
    July 2019
    February 2019
    October 2018
    September 2018
    June 2018
    April 2018
    March 2018

    Categories

    All

    RSS Feed

Proudly powered by Weebly