Logistics
- Roll
- Today: Net Logo Overview; Look at a program
- Questions? Comments? Wonderings?
Programming Review
Okay, we have seen and done some programming. Let's review a bit, okay? We'll do so by addressing the following questions.
- What is programming?
- What are the basics of programming?
- Is programming in Scratch hard? (why or why not?)
Questions? Comments? Wonderings?
One thing that seems to make Scratch relatively easy to program in (as compared to some other languages) is that you have pretty much all the instructions right in from of you. All you have to do is look for the right one, select it, put in in the proper place, and make sure of any data values in it. With other programming languages that is not so. You have to know or look up the instructions. And, you have to type the instructions which means there is a possibility of typing errors.
A NetLogo Program—Learn by Reading Code
We're going to try to figure out how NetLogo works by looking at a NetLogo Program. My favorite is termites.
Next Time / To-Do:
- Questions? Comments? Wonderings? See you Tuesday.
Logistics
- Roll
- Questions? Comments? Wonderings?
The First Logo Programming Task
The task is to take one of your "turtle-graphics" programs done in Scratch and write a similar program in NetLogo. Let's review the assignment description first to see if you understand the material there.
Okay, let's do some Logo.
- Start a new Logo program. Any questions/issues?
- Create that
setup
button. Any questions/issues?
- Create that
go
button. Any questions/issues?
- Adjust the Settings... (max x & y coordinates to 50, patch size to 5). Any questions/issues?
- Go to the Code tab. Any questions/issues?
- Copy the code from the programming task page. Any questions/issues?
- Go to the Interface tab. Any questions/issues?
- Comment out the three procedure calls in the definition of the
go
procedure. Any questions/issues?
- Insert (into the
go
procedure) an instruction asking the turtle to draw a half circle. Any questions/issues?
- Try it out. How?
- Did it work? Any questions/issues?
- Create an error in your program? What did you do to make an error? What happened (when you tried to run it)?
Questions? Comments? Wonderings? Okay, you're on your own
Next Time / To-Do:
- work on the logo_I task; bring questions to class.
- See you Thursday (a work day but we will likely discuss/start the next Logo programming task.)
Logistics
- Roll
- Note: the second NetLogo task is available. It involves following directions in "tutorials" to create programs.
- Questions? Comments? Wonderings?
Questions?
Questions? Comments? Wonderings? Are you having any difficulties?
Work on the first NetLog task (Scratch-to-Logo)
Next Time
- Share experience with Scratch-to-Logo task; Start next task.
- Questions? Comments? Wonderings? See you Tuesday.