Week 9 DO NOW QUESTIONS. Question: If the following procedure is executed after 1 turtle is created in the program, what shape is created on the NetLogo.

Slides:



Advertisements
Similar presentations
FRACTIONS.
Advertisements

Got Gas? Jim and Michael. Problem Statement (Weight 15%) An investigation of a gas pump queue as a function of rationing policy We modeled the queue at.
Top-Front-Side View Tutorial
Noadswood Science,  To understand the flow procedure when writing programs Thursday, January 15, 2015.
Netlogo and its Relatives Logo (Papert) –Language for teaching mathematics graphically –Tell turtle how to move Starlogo (Resnick) & StarlogoT (Wilensky)
Week 7 DO NOW QUESTIONS. Question: In the following segment of code, “food-location” is a ___? breed [ foragers forager ] breed [ followers follower ]
Wurzer, Lorenz, Popov: „NetLogo Workshop (Part 1)“, in eCAADe 2012 Prague, Slide 1 „Netlogo First Steps (Artif. Societies) “, in Social Simulation Conference.
Day 1 Goal: To create a model of people hunting in the forest for mushrooms and then start working on improving their mushroom hunting ability mathematically.
New Mexico Computer Science For All Local Variables in Netlogo Maureen Psaila-Dombrowski.
Week 13 DO NOW QUESTIONS. Suppose you had a working model of small fish feeding and living in the ocean. How could you change the code below to make the.
New Mexico Computer Science For All Breeds and Shapes in NetLogo Maureen Psaila-Dombrowski.
Color (1) Turtle class contains a method to change the pen color Note: before using Color class, you should add following line in the top of the source.
Happy Monday  Please do the following:
Introduction to TouchDevelop
Created By: Lacey Spieth Audience: Middle School Art Students Click the arrow to begin.
An Introduction to NetLogo given by Gabriel Wurzer. ,
ABM Frameworks Dr Andy Evans With additions from Dr Nick Malleson.
Binary Logic Lets think about the Binary!. What is Binary? Computers use binary as it’s a lot simpler! Each CPU is made up of millions of transistors.
Agent-Based Modeling and Simulation (ABMS) Bertan Badur Department of Management Information Systems Boğaziçi University.
Week 11 DO NOW QUESTIONS. An ask turtles block is a set of instructions that is issued to every turtle. Even though computers can do things very quickly,
Week 14 DO NOW QUESTIONS. You have been asked by a leader of your community to think about how a sudden increase in fuel price (gas= $12/gal) will affect.
An Introduction to NetLogo Gabriel Wurzer, Vienna University of Technology AnthropologischeGesellschaftWien.
III. Probability B. Discrete Probability Distributions
Introduction to Algorithms using Netlogo. What’s an Algorithm Definitions of Algorithm on the Web: –A procedure or formula for solving a problem.
Introduction to TouchDevelop
Logo For beginners By Dali Matthews 9S What is logo?
Agent-Based Modeling and Simulation (ABMS) Bertan Badur Department of Management Information Systems Boğaziçi University.
New Mexico Computer Science For All Command Procedures in NetLogo Maureen Psaila-Dombrowski.
CONTROL SYSTEMS Control Systems A command is a directive that performs a specific task An argument is a variable that can be used by the function reveiving.
Week 2 DO NOW QUESTIONS. In this procedure the programmer intended to clear all the turtles and patches and make a new turtle of size 3 with the pen down,
Week 10 DO NOW QUESTIONS. A programmer has created 100 turtles of random colors and randomly distributes green patches. Every time the turtles land on.
Probability with Dice and Data, Wiggle Walk, and Colliding Turtles Modeling and Simulation Module 1: Lesson 1.
New Mexico Computer Science For All Variables and Scope Maureen Psaila-Dombrowski.
New Mexico Computer Science For All Creating Turtles Maureen Psaila-Dombrowski.
Loops & Graphics IP 10 Mr. Mellesmoen Recall Earlier we wrote a program listing numbers from 1 – 24 i=1 start: TextWindow.WriteLine(i) i=i+1 If.
EXAMPLE 3 Find the probability of A and B You take a city bus from your neighborhood to a location within walking distance of your school. The express.
Fractional Parts of a Region Click on the picture that shows 1/2.
Billy’s Goat Problem  Billy and his family live in a rural area on a big piece of land. Their family goat likes to wander off their property and eat the.
Section 7.4 Use of Counting Techniques in Probability.
StarLogoTNG 101 Treasure Hunt Game Unit Lesson 7: Coordinate System.
MIS 585 Special Topics in IMS Agent-Based Modeling Bertan Badur Department of Management Information Systems Boğaziçi University.
Quiz 6.3C Here are the counts (in thousands) of earned degrees in the United States in a recent year, classified by level and by the sex of the degree.
Sunday 10 th May WALT: Read and write proper fractions. Sunday 10 th May 2015.
Week 4 DO NOW QUESTIONS. Question: Predict a turtle’s heading after this procedure is run once. to go ask turtles [ forward 1 set heading random 45 right.
Week 13 DO NOW QUESTIONS. to FishWiggle right random 45 left random 45 forward 1 set Fenergy Fenergy end Suppose you had a working model of small.
Week 3 DO NOW QUESTIONS. In this setup procedure the programmer intended to create one turtle of each color: red, green, and blue. What went wrong? to.
Pablo Revelo. Birds: to 3birds pu home pd lt 80 pu fd 250 pd setpensize 2 setpc "white st bird pu bk random 100 bird pu lt 90 fd random 40 bird ht.
Biology: foraging Day 6 COLQ 201 Multiagent modeling Harry Howard Tulane University.
Turtle Graphics Lesson 2 1. There are 3 homeworks to complete during the six lessons of this unit. Your teacher will let you know when a homework has.
M10 WS11:Krankenhausbedarfsplanung The World as We See It given by Gabriel Wurzer and Wolfgang E. Lorenz
Search for it on your computer
LOGO WHAT IS IT? HOW TO USE IT AND HOW USEFUL CAN IT BE?
Using the Python Turtle
For vs. While loop count=0 while count< 5: for count in range(5):
Management Information Systems
Week 3 DO NOW QUESTIONS.
LOGO BY Kaotip 9S.
Sorting and Grouping.
Management Information Systems
Reading a Normal Curve Table
Week 14 DO NOW QUESTIONS.
Learning to program with Logo
Algorithms and Flow Charts
Name: _______________________________
Fractions 1/2 1/8 1/3 6/8 3/4.
Here are four triangles. What do all of these triangles have in common
What Color is it?.
creating a ecosystems model in net logo
Translate 5 squares left and 4 squares up.
Let’s Learn the Basic Colors
Presentation transcript:

Week 9 DO NOW QUESTIONS

Question: If the following procedure is executed after 1 turtle is created in the program, what shape is created on the NetLogo plane? to DrawShape ask turtle 0 [ repeat 18 [ forward 1 right 10 set pcolor green ] end a)A squiggly line b)A straight line c)A half circle d)A complete circle

Question: In a Netlogo world where approximately 1% of the patches are red and you have created 10 blue turtles, what does the following procedure do? to go ask patches [ if pcolor = red [ sprout 1 ] end a)Creates 1 blue turtle b)Creates a turtle on every red patch, each turtle is a random color c)Creates 10 additional blue turtles d)Creates a blue turtle on every red patch

Question: In a NetLogo world where 10 turtles have been created, what does the wander procedure below do? to wander ask turtle 1 [ pen-down set pen-size 5 while [pcolor = black] [ forward 1 set heading random 25 ] end a)All the turtles wander around with their pens down b)Turtle 1 wanders around drawing a line as it goes c)Turtle 1 wanders around drawing a line as long as it is on a black patch d)All the turtles walk around as long as they are on black patches

Question: In a NetLogo program there is one turtle. 1% of the patches are green, 1 % of the patches are red and the rest are black. The following procedure, CalculateSteps, is executed in the program. What does it do? to CalculateSteps ask turtles [ let NumberSteps 0 while [pcolor = green] [ forward 1 set NumberSteps Numbersteps + 1 print NumberSteps ] end a)Calculates and prints the local variable NumberSteps which is the number of steps the turtle takes before it steps on a green patch. b)Calculates and prints the local variable NumberSteps which is the number of steps the turtle takes while it steps on a green patch. c)Calculates and prints the local variable NumberSteps which is the number of steps the turtle takes before it steps on a patch that is not black. d)Calculates and prints the local variable NumberSteps which is the number of steps the turtle takes.

Question : In the following piece of code, the programmer wants the turtles to get energy from eating grass by stepping on green patches and lose energy from walking around. After the turtles-own variable energy was created, the setup procedure created 10 turtles randomly distributed them and initialized their energy variable to 100. It also changes the color of some of the patches. Does this code do what the programmer intended? to go ask turtles [ right random 90 left random 90 forward 1 set energy energy - 1 if (pcolor = green) [set energy energy + 1] if (energy <= 0) [die] ] end a)Perhaps, if there are green patches on the Netlogo surface. b)Yes, the turtles eat grass when they step on a green patch and loose energy when they walk and die. c)No, the turtles never die d)No, the turtles cannot gain energy.