Week 12 DO NOW QUESTIONS. In NetLogo, monitors are output windows that allow you to keep track of how a something (a variable, a reporter or an expression.

Slides:



Advertisements
Similar presentations
Microsoft® Small Basic
Advertisements

Detecting Bugs Using Assertions Ben Scribner. Defining the Problem  Bugs exist  Unexpected errors happen Hardware failures Loss of data Data may exist.
How SAS implements structured programming constructs
Lecture 14 User-defined functions Function: concept, syntax, and examples © 2007 Daniel Valentine. All rights reserved. Published by Elsevier.
Making Choices in C if/else statement logical operators break and continue statements switch statement the conditional operator.
COMPUTER PROGRAMMING I Essential Standard 5.02 Understand Breakpoint, Watch Window, and Try And Catch to Find Errors.
Cosc 5/4730 Game Design. A short game design primer. A game or animation is built on an animation loop. – Instance variables of “objects” are updated.
Simulation Operations -- Prof. Juran.
Programming with Alice Computing Institute for K-12 Teachers Summer 2011 Workshop.
Stressful Life Events and Its Effects on Educational Attainment: An Agent Based Simulation of the Process CS 460 December 8, 2005.
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.
Six compound procedures and higher-order procedures.
Testing an individual module
Macros Tutorial Week 20. Objectives By the end of this tutorial you should understand how to: Create macros Assign macros to events Associate macros with.
Week 11 Recap CSE 115 Spring Want to write a programming language? You’ll need three things: You’ll need three things: –Sequencing –Selection Polymorphism.
Visual C++ Programming: Concepts and Projects
EXAMPLE 4 Writing and Evaluating an Expression Heart Rate a. Use n to write an expression for heart rate in beats per minute. b. After exercising, you.
2-Day Introduction to Agent-Based Modelling Day 2: Session 5 Variables and Debugging.
Epidemiology Modeling the Spread of Disease Designing and Running Experiments Modeling and Simulation Module 1: Lesson 5.
Department of Computer Science What is NetLogo UH-DMML  Multi-agent programmable modeling environment  Well suited for modeling complex systems evolving.
Relationships. In the Interaction diagrams, we began to look at how classes communicate with one another. Now, we'll focus on the relationships between.
Every week: Sign in at the door If you are new: Fill in Registration Form Ask a Mentor how to get started Make sure you are on the Athenry Parents/Kids.
David Streader Computer Science Victoria University of Wellington Copyright: David Streader, Victoria University of Wellington Objects Real and Java COMP.
New Mexico Computer Science For All Statements and Expressions in NetLogo Maureen Psaila-Dombrowski.
ABM Frameworks Dr Andy Evans With additions from Dr Nick Malleson.
2-Day Introduction to Agent-Based Modelling Day 1: Session 4 Networks.
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,
Programming with Alice Computing Institute for K-12 Teachers Summer 2011 Workshop.
Do … while ( continue_cond ) Syntax: do { stuff you want to happen in the loop } while (continue_condition);
PROGRAMMING IN VISUAL BASIC.NET VISUAL BASIC BUILDING BLOCKS Bilal Munir Mughal 1 Chapter-5.
Trivia Review Day. Question 1 O Which measure of central tendency will be the most affected by an extremely high value?
Chapter 12: How Long Can This Go On?
System Development Life Cycle. The Cycle When creating software, hardware, or any kind of product you will go through several stages, we define these.
Adding Instrumentation Designing and Running Experiments Modeling and Simulation Module 1: Lesson 6.
Variables, operators, canvas, and multimedia Dr. José M. Reyes Álamo.
Introduction to Matlab’s Graphical User Interface (GUI) Type “guide” “Guide” creates interface on a Figure window and code in an M-file. Some hidden code.
Graphing Why? Help us communicate information : Visual What is it telling your? Basic Types Line Bar Pie.
Visual Basic.NET BASICS Lesson 5 Exponentiation, Order of Operations, and Error Handling.
Current Assignments Homework 2 is available and is due in three days (June 19th). Project 1 due in 6 days (June 23 rd ) Write a binomial root solver using.
An Introduction to Programming with C++ Sixth Edition Chapter 7 The Repetition Structure.
MULTIPLE ALTERNATIVES IF… THEN… ELSEIF SELECT CASE.
New Mexico Computer Science For All Variables and Scope Maureen Psaila-Dombrowski.
Multiple Regression BPS chapter 28 © 2006 W.H. Freeman and Company.
Control Statements in C 1.Decision making statements 2.Looping statements 3.Branching statements
Lecture 2 Conditional Statement. chcslonline.org Conditional Statements in PHP Conditional Statements are used for decision making. Different actions.
FG ABCDE Vocabulary Exponents & Powers1.5 Translating Verbal Phrases 1.3 Order of Operations1.6.
1.3 Algebraic Expressions Which algebraic expression models the word phrase seven fewer than a number t ? A. t + 7C. t – 7 B. -7tD. 7 – t The correct answer.
Week 61 Introduction to Programming Ms. Knudtzon C Period Tuesday October 12.
Random Numbers Random numbers are extremely useful: especially for games, and also for calculating experimental probabilities. Formula for generating random.
Programming Fundamentals. The setw Manipulator setw changes the field width of output. The setw manipulator causes the number (or string) that follows.
Clearly Visual Basic: Programming with Visual Basic 2008 Chapter 13 How Long Can This Go On?
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.
Conditionals Conditional statements, called conditionals for short, are statements in the if-then or if-then-else form. Examples: “If the alarm goes off,
Today's Ninja Challenge: Write Your First Computer Game!
Lives and Scoring Games Programming in Scratch. Games Programming in Scratch L2 Lives and Scoring Learning Objectives Define a variable Understand the.
Under the Hood: A Map This slidedeck shows the various kinds of information that Java tracks under the hood as you create classes and objects and evaluate.
Today… Python Keywords. Iteration (or “Loops”!) Winter 2016CISC101 - Prof. McLeod1.
Scientifi c Method Chapter 1: The World of Earth Science.
1 Agent-Based Tools: focus on NetLogo Ing. Cristina Ponsiglione University of Naples Federico II Laboratorio di Simulazione ad Agenti.
Follow up from lab See Magic8Ball.java Issues that you ran into.
FOP: While Loops.
بسم الله الرحمن الرحيم.
Computers & Programming Languages
Programming in JavaScript
4.1 Exponential Functions
Programming in JavaScript
creating a ecosystems model in net logo
Unsupervised Machine Learning in Agent-Based Modeling
Review of Previous Lesson
Variables, Constants, Assign.
Presentation transcript:

Week 12 DO NOW QUESTIONS

In NetLogo, monitors are output windows that allow you to keep track of how a something (a variable, a reporter or an expression that evaluates to a value) changes by showing its value as the program is run. There are a number of fields you can change when creating a monitor. In this image, an entry in which field(s) will not have any impact on the value that appears in the monitor. a.Reporter field b.Decimal place field c.Display name field d.Font size field e.C and D

If you build a game in NetLogo and create a reporter to display the score. What kind of code might you see in your program? Assume: globals [score] a.report scores b.if something = true [set score score + 1] c.count score d.count turtles = score e.turtles-own [score]

Plots are used to display changes to values within a model as a model runs. There can be multiple values plotted in the model because it is possible to have plots with multiple pens. In a model of disease spreading through a population which lines might be used to plot outcomes? Assume: turtles-own [is-sick? is-infected?] a.plot [is-sick?] of turtles b.plot count turtles with [is-sick? = true] c.plot count turtles with [is-sick? = false] d.plot count turtles with [is-infected? = true] e.b c and d above.

Assume that you are creating a model that requires a plot. You are not sure how to use plots. Which approach or approaches might help you figure out how plots work. a.Use the built in NetLogo manual under Help > NetLogo Manual b.Ask somebody who knows how to work with plots. c.Add a plot widget to your model’s interface and play with it. d.Look at other models that use plots and examine the code. e.All of the above.

When modeling the spread of infectious disease there are many things (factors) that can affect the spread of the disease. These factors are often called the parameters in a NetLogo model. When running the model it is interesting to see how changing these parameters change the results. NetLogo programmers often use sliders in their models so that the model can be easily run at different settings. Which variable or variables would be a good parameters or “sliders” for an infectious disease model? a.wiggle-rate (rate turtle move through the world) b.number-contacts-before-infected c.profession (“professional” “student” “wage earner”) d.initial-population-density e.All except c