showing the exercise

dynamic text

You can show the exercise in a dynamic text. Select the Text Tool in the Toolbar. Instead of just typing a + b as a normal, static text select the previously defined numbers a and b in the list of objects in the Text dialog. The text in the Graphic will now show the values of a and b instead of the names.

Sum of two random numbers

This first applet shows two random defined numbers in a dynamic text. See how it works and follow the steps to create it yourself.

Construction Steps

1Type following two commands in the inputbar and define the numbers a and b: a = RandomBetween(1,10) b = RandomBetween(1,10)
2Toolbar ImageSelect the Text Tool and type the text a + b, while selecting a and b in the list of objects, making the text dynamic.

Try it yourself...