1 / 6

Week 13 DO NOW QUESTIONS

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 model more general so that you could explore a variable without having to change the actual code each time?

viveka
Download Presentation

Week 13 DO NOW QUESTIONS

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Week 13 DO NOW QUESTIONS

  2. 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 model more general so that you could explore a variable without having to change the actual code each time? • Change the name of the procedure to BigFishWiggle • Change line iv “Forward 2” • Add a new slider called newSlider and change line v “set FenergyFenergy – newSlider” • Include a line that “Ask fishes [ set size 3 ]”

  3. “Breeds” allow programmers to have different kinds of turtles with different custom variables for each breed. The names also help programmers keep track of which agentset they are working with. What does the following command do? • Immediately Creates 100 sharks • Allows you to use the command “create-sharks” later in your code • Allows to use a command like sharks-own [hungry?] later in your code. • b and c above.

  4. In a model that has fish that are moving and expending energy; eating and gaining energy; why might you want to have the code below? • To punish the fish for not doing what you say. • To model the consequences of running out of food. • To make a more accurate model of sustainability—fish die when resources are depleted. • b and c

  5. The concept of “carrying capacity” is important in biology. It means that a given environment only has enough food (or space, etc.) to support a certain number of organisms. In a model that has fish moving (spending energy), eating (gaining energy), and reproducing when they have gained enough energy. What limits the fish population? • The amount of food available • The number of other fish • The amount of energy that they need to reproduce. • All of the above

  6. You have created a simple fish ecosystem model with fish and plankton. Not you want to add a predator, say a shark. What things do you need to include? • A new breed perhaps called shark • An interaction between the shark and the fish • Procedures that allow the shark to move around, give birth and die. • Nothing, you just need to put the shark into the model and let nature take its course • a, b and c

More Related