Questions 1 and 2 from Fall 2009 final exam - see what the output would look like.

Group exercise from 01/19/2010/Tuesday class.


See the NetLogo code for QuestionOnePattern and QuestionTwoPattern on the group exercise handout.
This was actually the first two pages of the fall 2009 final exam.

powered by NetLogo

view/download model file: spokes17by17grid.nlogo

WHAT IS IT?

Shows the correct output for question 1 and for question 2 for the final exam from Fall 2009. This was a group exercise in the 3rd class for spring 2010.


HOW IT WORKS

The pretty SPOKES pattern is made by REPEAT 8 [ cro howManyTurtlesNeeded fd 1]


HOW TO USE IT

We will play around with the model and modify it during the lab.


THINGS TO NOTICE

Where do the turtles end up after going forward so many steps. Where does a line get drawn when the Pen is Down with PD.


THINGS TO TRY

In lab eventually, we will automate the spokes so one button allows us to see all the SPOKES possibilities and we can dispense with the need to use the slider at all to reset to a different number of spokes (4, 8, 12, 16, 20, 24, 28, 32, ... are choices the slider offers).

EXTENDING THE MODEL

This section could give some ideas of things to add or change in the procedures tab to make the model more complicated, detailed, accurate, etc.


NETLOGO FEATURES

Changing the color of patches for every other patch using the mod function to get a remainder that is either 0 or 1. Using pcolor to set the color of the patches. Changing the thickness or the width of the lines that the turtles draw.