The instructions for this activity show a horizontal slider like the one used in Starlogo Nova. This slider allows the user to adjust the button to any number between 0 and 100. Often sliders are used to set an original number of agents or a population at the beginning of a program in setup. When programming an agent-based model, it is often necessary to have randomness and a percent chance that something might happen. For instance, if turtle collides with another turtle, there is a ‘percent chance’ that it will turn orange.
1. You will put a sticky or dot on the slider line below. Write down what the slider value is. (your teacher might assign you a number)
2. Your teacher will use a random number generator to come up with 100 random numbers between 0 and 100.
3. Every time the number in the random number generator picks a number that is less than or equal to the number you chose, write a tick mark in the score box to keep track of how often this happens.
4. Count all of your tick marks in the score box. From your total of ticks, come up with a percent chance that you, the turtle, turned orange.Log in or register to view attachments and related links, and/or join the discussion