drawing exercise: point (1)

introduction
Besides calculations we often ask students to draw things (points, lines, polygons...). An easy way to do this in GeoGebra is placing those objects in the screen to be dragged to the appropriate position.
How to do this?
[list][*][b]Point solution[/b]: Define:[br][code]a = RandomBetween(-5, 5)[br]b = RandomBetween(-4, 4)[br]Sol = (a, b)[/code][/*][*][b]Point P[/b]: Define [code]P = (-14, 2)[/code][br]Rightclick on P to open the Properties and select the tab Advanced to define its dynamic colors:[br][code]Red: If(P ≠ Sol, 1, 0)[br]Green: If(P ≟ Sol, 0.7, 0)[br]Blue: 0[/code][/*][*][b]Exercise[/b]: Create a dynamic text with the random defined exercise[/*][*][b]show solution[/b]: Create a checkbox [i]show[/i] to show hide the point [i]Sol[/i].[/*][*][b]new exercise[/b]: Create a button with a script that recalculates the random numbers, replaces P to its original position and hids the point Sol:[br][code]UpdateConstruction[][br]SetValue[P,(-14,2)][br]SetValue[show,false][/code][/*][/list]

Information: drawing exercise: point (1)