02 Variablized Templates - Intro & Videos

Variablized Templates are how ASSISTments allows you the builder to generate multiple copies of the same basic problem type.  There is a small amount of programming that goes into this process.  This section will help take you through the basics of the programming that is involved in this process.  A large part of the numbers section revolves around displaying the number of decimal places or significant figures that a builder would want a problem to include.

Use the navigation panel (left side) to go to documentation pages; use the table of contents to go to videos on this page.


Note about Builder Videos 3-8

In Builder Video 2, I created a simple problem about the time it takes a baseball to reach it's highest point.  In Builder Videos 3-7, I take that problem and turn it into a variablized template with quite a few bells and whistles.  (How many of these details you choose to implement in your own problems is, of course, up to you.)  In Builder Video 8, I show how to create 50 instances from the template in a skill builder problem set.

Note about Reference Problems & Problem Sets

For each of the following videos, I have "saved" the final product.  In your ASSISTments account, you won't be able to edit my problems.  BUT, if you use the ID's below, you will be able to make your own copy.  This means that you can take any problem or problem set ID I give you, make a copy, edit / alter it to see what happens, and my original will be unchanged.  (So you can always make another copy to compare your changes to the original.)
The five problems from videos 2-7 are stored in one problem set.
Problem Set PSAX96C
  • PRA9E22 Video 2 (Original, no variablization)
  • PRA9E39 Videos 3 & 4 (Randomizes only initial velocity)
  • PRA9E4Z Videos 5 & 6 (Randomized v0, and one of five planets - with corresponding g AND answer rounding)
  • PRA9E64 Video 7 (Final version, with images)
  • PRA9E65 Video 7 (Dummy problem that stores images)


Builder Video 3 - How to use Variables.

This video goes over the creation of and use of variables; including the "v-script" and the use of "sprintf" to display a given number of variables.
I begin the build of a variablized template (problem ID PRA9E39), which can be found in Problem Set PSAX96C.
This problem is now called "Baseball Problem - Rand V0.  This problem is further edited in Builder Video 4.

Builder Video 3 - How to use Variables


Builder Video 4 - Generating a random number within a range.

I complete the build of a variablized template (problem ID PRA9E39), which can be found in Problem Set PSAX96C.
This problem makes use of the rand(#) code.
This problem is now called "Baseball Problem - Rand V0.

Builder Video 4 - Generating a random number within a range

To explain my comment about "100.0" vs "100", please see the page 02a sections on Integer and Float and the page 02b section on Basic Math (PEMDAS)


Builder Video 5 - Randomly picking from a list

Using sets and a pointer to pick from a list (or multiple coordinated lists).
I start a new a variablized template (problem ID PRA9E4Z), which can be found in Problem Set PSAX96C.
I continue editing this problem in Builder Video 6.
This problem is now called "Baseball Problem - Rand V0 and Planet.

Builder Video 5 - Randomly picking from a list


Builder Video 6 - Rounding & Multiple Correct Answers

Rounding is different than the display code (sprintf) shown in video 3.  Use this to help format the answers.
I continue to improve a variablized template (problem ID PRA9E4Z), which can be found in Problem Set PSAX96C.
This problem is now called "Baseball Problem - Rand V0 and Planet.

Builder Video 6 - Rounding



Builder Video 7 - Variablizing Images

This allows you to match an image with the corresponding text while variablizing.
I add images to a variablized template (problem ID PRA9E64); I store images in a dummy problem (problem ID PRA9E65).  
Both problems can be found in Problem Set PSAX96C.
This problem is now called "Baseball Problem - Rand V0 and Planet w/ image.

Builder Video 7 - Variablizing Images



Builder Video 8 - Making Instances

Templates should not be used in "real" problem sets;  This goes over how to make static instances of a template.
The completed problem set (skill builder) is PSAX9WD.

Builder Video 8 - Making Instances