#### The Units of Study below can be used with your Mathematics, Science, or other classes. Our suggestion is to work through Units 1 and 2, adapting as needed, and then jump to the appropriate Unit 3, depending on the course you’re teaching – or create your own and share it with us!

#### If you’re using Chromebooks or other computers that can’t load NetLogo, feel free to use this Blank NetLogo Web Template. The best way to use it would be to direct link to it on your class calendar, EdModo, or Schoology. That way your students don’t find this page and figure out how to find all the code. 🙂

#### Please contact the webmaster for feedback. Good luck and enjoy!

#### Unit 1 – Introducing NetLogo – Agents: Observer, Patches, and Turtles

Week Objective: Introduce students to coding, NetLogo, Agents, and creating worlds.

Mathematics Focus Standard: Grade 5: Geometry » Graph points on the coordinate plane to solve real-world and mathematical problems.

Mathematics Focus Standard: Algebra: Solve equations and inequalities in one variable.

Computer Science Focus Standard: CPP: 4. Demonstrate an understanding of algorithms and their practical application.

Social Science Focus Standard: Grade 5: 4. Students use map and globe skills to determine the absolute locations of places and interpret information available through a map’s or globe’s legend, scale, and symbolic representations.

CTE Focus Stsandard: D2.1 Know the fundamentals of programming languages and concepts.

#### Lesson 1.1

Objective: Introduce students to coding, generate hype, introduce NetLogo, and have students write their first two programs.

Anticipatory Set: Show the Code.org video and then follow up by explaining the amazing job opportunities available in computational science. A particular emphasis should be that computer science can be paired with almost any interest. Impress upon students that you can find a job you are passionate about – whether it’s basketball, video games, journalism, or marketing – by pairing it with skill in computer programming. It is important to generate enthusiasm here on day one so hype them up and if you have specific videos, jobs, or models you have made or like working with – show them! Get your students fired up!

Activity: Walk students through using this website and direct them to the 15 Model Sequence. Have your students spend 20 to 25 minutes working through Use 1, 2, 3, 4, and 5 at their own pace. These models and accompanying tasks will familiarize your students with the interface and possibilities of NetLogo.

Lesson: Conclude the lesson by walking your students through how to code the following items:

– First, open NetLogo, create a new file, and have your students type – show “hello world” – into the command center. Explain that they’ve written their first code, directing the “observer” agent to speak to the world.

– Second, have your students open the code tab and create a setup method which contains the code – show “hello world” (see the completed model below). Then navigate back to the interface and create a button for setup. Show the students how methods can be invoked by using buttons in the interface.

– Third, make another method setup2 which contains the code – ask patches [set pcolor pink]. Have your students create the associated button on the interface and then experiment with different color options. Optional: show them the Tools: Color Swatches.

– Last, have your students add this line of code to their setup2 method: ask patch 0 0 [set pcolor red]. Now challenge them to write their first initial of their first name with patches. See the completed program below for examples of setup and setup2.

NetLogo File (zipped): lesson-1-1-program-1

NetLogo Web: lesson-1-1-program-1

NetLogo Keyword Graphic Organizer: netlogo-keywords-graphic-organizer

#### Lesson 1.2

Objective: Introduce students to creating worlds in NetLogo using coordinate geometry and linear inequalities. Connect to student’s understanding of the world using flags and geography.

Warmup: Have students open a blank NetLogo and write a setup method to write the first letter of their last name.

Lesson: Walk students through writing the code to create the flag of Hungary (all flags will be included in the NetLogo file below). It’s nice to have students name their methods after the country as I’ve shown in the file. The next 3 days, students will create flags of many countries. It is fun to have students look up the flags on the internet themselves. You might also consider giving them a map of the world and having them locate the countries. You will be surprised which countries they know the locations of and which they don’t. You will find that students will want to make flags of countries they have a connection to – heritage, personal interest, etc. Encourage them to make flags for fun, homework, or extra credit.

Checking for Understanding: Have your students build the flag of France.

Challenge: Have your students build the flag of Benin.

Bonus Challenge: Have your students build the flag of the United Arab Emirates (UAE).

NetLogo File (zipped): lesson-1-2-program-1

NetLogo Web: lesson-1-2-program-1

#### Lesson 1.3

Objective: Introduce students to creating worlds in NetLogo using coordinate geometry and linear inequalities. Connect to student’s understanding of the world using flags and geography.

Warmup: Have your students build the flag of Madagascar. See the images and programs below.

Mini Lesson I: Walk your students through building the flag of Syria using turtles.

Checking for Understanding: Have your students build the flags of Honduras and Suriname.

Mini Lesson II: Walk your students through building the flag of Finland using the keyword “and”.

Checking for Understanding: Have your students build the flag of Panama.

NetLogo File (zipped): lesson-1-3-program-1

NetLogo Web: lesson-1-3-program-1

#### Lesson 1.4

Objective: Introduce students to creating worlds in NetLogo using coordinate geometry and linear inequalities. Connect to student’s understanding of the world using flags and geography.

Super Warmup: Have students build the flags of Lithuania, Iceland, and the Republic of Congo. These flags are pretty challenging and will require students to have a solid foundation in manipulating patches or possibly using turtles creatively.

NetLogo File (zipped): lesson-1-4-program-1

NetLogo Web: lesson-1-4-program-1

Practice and Self Assessment: Have students work on the Unit 1 Practice Quiz to prepare for the Unit 1 Quiz the following day. You will need to create your own exam – try to challenge your students but not over reach. For classes that require more support, consider allowing them to use a computer while working.

#### Unit 2 – Gaming and Simulating – Turtle Behavior

Week Objective: Increase student proficiency in coding, NetLogo, Agents, and creating worlds. Introduce turtle behavior and interaction.

Mathematics Focus Standard: Algebra: Solve equations and inequalities and Systems of inequalities in one variable and two variables.

NGSS Focus Standard: HS ETS1-4: Use a computer simulation to model the impact of proposed solutions to a complex real-world problem with numerous criteria and constraints on interactions within and between systems relevant to the problem.

Computer Science Focus Standard: CPP: 4. Demonstrate an understanding of algorithms and their practical application.

CTE Focus Standard: D2.2 Compare programs by using control structures, procedures, functions, parameters, variables, error recovery, and recursion.

#### Lesson 2.1

Objective: Introduce students to turtle behavior and looping methods.

Warmup: Have your students build the flags of Switzerland and Togo.

NetLogo File (zipped): unit-2-1-program-1

NetLogo Web: unit-2-1-program-1

Lesson: Walk your students through building the Ants model below. You will be introducing the go method, looping a method, and several ways to have turtles act. You will want to talk about heading and random during this lesson.

Ant Model NetLogo File (zipped): lesson-2-1-program-2

Ant Model NetLogo Web: lesson-2-1-program-2

Checking for Understanding: Have your students build the Fish Tank model below. We suggest running it in NetLogo Web while projecting.

Fish Tank NetLogo File (zipped): lesson-2-1-program-3

Fish Tank NetLogo Web: lesson-2-1-program-3

#### Lesson 2.2

Objective: Improve student proficiency with turtle behavior and looping methods.

Lesson: This is a big lesson where you will want to introduce game building to your students. You are going to build a Galaca style space shooter, as shown below. You will need to show your students how to create buttons to move your ship. Most importantly, you will be introducing many new keywords, such as: if, any?, in-radius, and die. You will want to move very slowly through the elements of the program and check extremely often so students don’t fall behind.

Galaca Game NetLogo File (zipped): lesson-2-2-program-1

Galaca Game NetLogo Web: lesson-2-2-program-1

#### Lesson 2.3

Objective: Check that students have reached a high level of understanding of patch and turtle behavior and introduce Globals if possible.

Checking for Understanding: Have your students build the Balloon Pop game below. An additional option here is to show them Globals to collect points and increase the game difficulty.

Balloon Pop NetLogo File (zipped): lesson-2-3-program-1

Balloon Pop NetLogo Web: lesson-2-3-program-1

#### Lesson 2.4

Objective: Have students interact with a variety of programs and solve tasks requiring a variety of new coding skills.

Activity: Direct your students to the 15 Model Sequence. Have your students spend 20 to 25 minutes working through Modify 1, 2, 3, 4, and 5 at their own pace. These models and accompanying tasks will challenge your students in a variety of ways and introduce many new keywords.

Practice and Self Assessment: Have students work on the Unit 2 Practice Quiz to prepare for the Unit 2 Quiz the following day. You will need to create your own exam – try to challenge your students but not over reach. For classes that require more support, consider allowing them to use a computer while working.

#### Unit 3 – Course Specific Tracks:

#### Pre-Algebra

#### Algebra 1

#### Geometry

#### Algebra 2

#### Life Science

#### Physical Science

#### Earth and Space Science