Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
repository:angry_birds [2021/02/16 23:51] porcaro1 [See Also] |
repository:angry_birds [2021/02/18 19:41] (current) porcaro1 [Answer Key] |
||
|---|---|---|---|
| Line 14: | Line 14: | ||
| ====Activity==== | ====Activity==== | ||
| ===Handout=== | ===Handout=== | ||
| + | {{ :repository:angrybirds.png?nolink&600|}} | ||
| ** Angry Birds ** | ** Angry Birds ** | ||
| - | {{ :repository:angrybirds.png?nolink&600|}} | ||
| You have set up your Angry Bird catapult 250 m away from a pig encampment in order to destroy them. The encampment is here on Earth. You are to ignore the effects of air friction in your calculations and computer simulation. | You have set up your Angry Bird catapult 250 m away from a pig encampment in order to destroy them. The encampment is here on Earth. You are to ignore the effects of air friction in your calculations and computer simulation. | ||
| Line 28: | Line 28: | ||
| - Adjust this code so that it fits the second scenario | - Adjust this code so that it fits the second scenario | ||
| ===Code=== | ===Code=== | ||
| + | [[https://www.glowscript.org/#/user/porcaro1/folder/RepositoryPrograms/program/AngryBirds-Incomplete | Link]] | ||
| <code Python [enable_line_numbers="true"]> | <code Python [enable_line_numbers="true"]> | ||
| GlowScript 3.0 VPython | GlowScript 3.0 VPython | ||
| Line 58: | Line 59: | ||
| ===Code=== | ===Code=== | ||
| ==Scenario 1== | ==Scenario 1== | ||
| + | [[https://www.glowscript.org/#/user/porcaro1/folder/RepositoryPrograms/program/AngryBirds-Solution1 | Link]] | ||
| <code Python [enable_line_numbers="true", highlight_lines_extra="3,4,10,11,13,16"]> | <code Python [enable_line_numbers="true", highlight_lines_extra="3,4,10,11,13,16"]> | ||
| GlowScript 3.0 VPython | GlowScript 3.0 VPython | ||
| Line 77: | Line 79: | ||
| t=t+dt </code> | t=t+dt </code> | ||
| ==Scenario 2== | ==Scenario 2== | ||
| + | [[https://www.glowscript.org/#/user/porcaro1/folder/RepositoryPrograms/program/AngryBirds-Solution2 | Link]] | ||
| <code Python [enable_line_numbers="true", highlight_lines_extra="3,4,10,11,13,16"]> | <code Python [enable_line_numbers="true", highlight_lines_extra="3,4,10,11,13,16"]> | ||
| GlowScript 3.0 VPython | GlowScript 3.0 VPython | ||