In the previous Tynker activity, you learned how to write instructions, or code, to model and animate the agents of a simple system. In addition to programming the agents, you also need to provide a way to change some things about the system. Things that can be changed in a model are called parameters. Think about the infection spreading simulation that you saw in#TrittatHome1. You were able to change the number of initial infections, the recovery rate, and other things about the model. Those are parameters of the infection model. In this project you will learn how to program a model so that it has parameters, or values that can be changed. Building on the things you learned while making the dodgeball/tilt game in the previous activity, you will build a model of a dinosaur ecosystem. This model will allow the user to set parameters at the start of each simulation to specify the number of dinosaurs, the amount of food available, and other things about the dinosaurs’ interdependent system. Once again, it would be best to print the directions as reference as you work. Happy coding!
0 Comments
Leave a Reply. |
|