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.

Slides:



Advertisements
Similar presentations
Making Math Work Algebra Tiles
Advertisements

NETLOGO LISTS Or… James says, fput THIS!. What are LISTS? Shopping list Address list DNA sequences Any collection of similar or dissimilar things Often.
Netlogo! NetLogo is a programmable modeling environment for simulating complex systems. Modelers can give instructions to hundreds or thousands of independent.
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.
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.
1 Loops. 2 Often we want to execute a block of code multiple times. Something is always different each time through the block. Typically a variable is.
Mrs. Chapman. Tabs (Block Categories) Commands Available to use Script Area where you type your code Sprite Stage All sprites in this project.
Logo Lesson 4 TBE Fall 2004 Farah Fisher. Prerequisites Create basic and complex shapes using Logo procedures Create Logo procedures that use variables.
Logo Lesson 3 TBE 540 Fall 2004 Farah Fisher. Prerequisites for Lesson 3 Before beginning this lesson, the student must be able to… Use simple Logo commands.
Logo Lesson 5 TBE Fall 2004 Farah Fisher. Prerequisites  Given a shape, use basic Logo commands and/or a procedure to draw the shape, with and.
Binomial & Geometric Random Variables
New Mexico Computer Science For All More Looping in NetLogo Maureen Psaila-Dombrowski.
Field Setup Field Setup (5 stations) Separate large field into three equal “stations” using cones, and small field into two equal “stations” using cones.
Today: Chapter 1. Motion Diagrams Particle Model Vector Addition, Subtraction Position, velocity, and acceleration Position vs. time graphs PHY131H1F –
GRAVITY EQ: What is the relationship among the mass of objects, the distance between the objects, and the amount of gravitational attraction?    SPI
Lecture 11 Alice Project Deliverable 1: Extension to Midnight! Midterm next class – Midterm review 4-6pm WED Pepper Canyon Hall 106 – Red scantron (1/2.
2-Day Introduction to Agent-Based Modelling Day 1: Session 1 Introduction, commands, loops, conditionals.
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,
We are learning to: explain that gravitational force determines motions in the solar system and keeps the planets in orbit around the sun. We are looking.
An Overview of Programming in Python CSC 161: The Art of Programming Prof. Henry Kautz 9/9/2009 Slides stolen shamelessly from Dr. Mark Goadrich, Centenary.
An Introduction to Python Programming Dr. Mark Goadrich Centenary College of Louisiana NWLAPCUG - May 15th 2008.
Module 3 Fraser High School. Module 3 – Loops and Booleans import statements - random use the random.randint() function use while loop write conditional.
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.
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.
Understanding Randomness
ORDER OF CONTENT AND INSTRUCTIONS A program in its simplest form usually contains three kinds of activity:  INPUT : The program asks the user for some.
Robots Week 3a Programming Lesson 2: Modifiers, Loops and Jumps Programming Solutions.
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,
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.
Aim: How do we multiply monomials and polynomials?
Rounding Using Significant figures. Another way of rounding is using significant figures.
Advanced Work with Embedded and Summative Assessment Dr. Steve Broskoske Misericordia University EDU 533 Computer-based Education.
Algorithms Writing instructions in the order they should execute.
New Mexico Computer Science For All Patches and Agent/Environment Interactions Maureen Psaila-Dombrowski.
Create a Halloween Computer Game in Scratch Stephanie Smullen and Dawn Ellis Barb Ericson October 2008.
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.
Getting started with the turtle Find the latest version of this document at
PROGRAMMING IN PYTHON LETS LEARN SOME CODE TOGETHER!
Chapter 5 Normal Probability Distributions. Chapter 5 Normal Probability Distributions Section 5-4 – Sampling Distributions and the Central Limit Theorem.
Introduction to Text Based Coding. We’re learning to explore how text based programming works You will display and enter text into a window You will use.
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.
Click hereClick here to begin. A.£178 million£178 million B.£1 million£1 million C.£51 million£51 million D.£113 million£113 million.
The Power of Circles 1. Click on a word or formula to answer a question about that topic 2. If you get the answer right, you can click on a new word.
IST 210: PHP LOGIC IST 210: Organization of Data IST210 1.
FOR LOOPS "LOOP FOR A SET NUMBER OF TIMES.". FOR ( START_VALUE; END_VALUE; INCREMENT_NUMBER ) { //YOUR_CODE_HERE } So after the word "for" (in lowercase)
Turtle Graphics Let’s see what we can draw on Python!
Continue Central Fire Command Hello Recruit, glad to see you. We need some good fire fighters, and I hope you can become one of us. I need you to first.
11.1 Chi-Square Tests for Goodness of Fit Objectives SWBAT: STATE appropriate hypotheses and COMPUTE expected counts for a chi- square test for goodness.
PROBABILITY DISTRIBUTIONS DISCRETE RANDOM VARIABLES OUTCOMES & EVENTS Mrs. Aldous & Mr. Thauvette IB DP SL Mathematics.
Programming Basics - RobotC Introduction to Robotics.
Part 1 Learning Objectives To understand that variables are a temporary named location to store data and that programmers work with different data types.
11.1 Chi-Square Tests for Goodness of Fit
Trace Tables In today’s lesson we will look at:
Management Information Systems
Week 3 DO NOW QUESTIONS.
LOGO BY Kaotip 9S.
Management Information Systems
Programming Scratch to Control a K’NEX Fairground Ride
MIS 643 Agent-Based Modeling and Simulation 2016/2017 Fall.
File Handling Programming Guides.
Programming Basics - RobotC
Here are four triangles. What do all of these triangles have in common
Using Logo and Logic This presentation uses a version of Logo called StarLogo available through MIT. It can be downloaded for free and installed on your.
creating a ecosystems model in net logo
Class code for pythonroom.com cchsp2cs
CMPT 120 Lecture 4 – Unit 1 – Chatbots
Presentation transcript:

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 a green patch, the color of the turtle is turned green too! The programmer is trying to have the turtles stop moving around once there are no more red turtles. What’s wrong with the following code? a)The reporter, count turtles with [color = red] > 0, does not count the number of red turtles. b)The while command is the wrong command to use, you should use the repeat comment. c)The ask turtles command is incorrect because you want the observer to perform the commands d)You are missing a pair of square brackets, starting before the ask command and ending after the last square bracket because it is necessary to contain the commands to be performed by while the reporter is true in square brackets.

You are trying to understand a NetLogo program written by another programmer. You come across across the following line of code What does it do? a)It sets the variable mylist to the number of turtles one green patches b)It assigns the turtles in the upper right quadrant on green patches to the agentset thoseones c)It creates an agentset, thoseones, of green turtles in the upper right quandrant. d)It puts all the turtles on green patches

You have a model with dogs and cats. The dogs chase the cats but do not like to share space with another dog. You want to prevent the dogs from moving onto patches that contain other dogs. Here is the code that you wrote What is wrong with it? a)There is no patch-ahead command b)The word not should be in front of the word if c)cats-on should be changes to dogs-on d)any? is not a NetLogo command

You have a list, mylist, that contains 9 numbers (even number from 1 – 20). You want to prepend 0 to the list. What is the command and the resulting list a)prepend mylist 0 mylist ;; [ ] b)fput mylist 0 mylist ;; [ ] c)lput mylist 0 mylist ;; [ ] d)prepend mylist 0 mylist ;; [ ]

You have created a list containing the numbers 10, 25, 1002 and 4. The following command is given in your code after the list is created a)the numbers [ ] are printed in the command center b)the number 4 is printed in the command center c)one of the 4 numbers is printed in the command center d)nothing is printed in the command center