Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
repository:angry_birds [2021/01/27 17:52]
porcaro1 [Activity]
repository:angry_birds [2021/02/18 19:40]
porcaro1 [Answer Key]
Line 2: Line 2:
 ====Activity Information==== ====Activity Information====
 ===Learning Goals=== ===Learning Goals===
-  *+  *Model a projectile ([[https://​www.nextgenscience.org/​pe/​hs-ps2-1-motion-and-stability-forces-and-interactions | HS-PS2-1]]) 
 +  *Be able to determine launch angle and velocity given target location
 ===Prior Knowledge Required=== ===Prior Knowledge Required===
-  *+  *Trigonometry 
 +  *Decomposing vectors 
 +  *Kinematics in 2-Dimensions
 ===Code Manipulation=== ===Code Manipulation===
-  *+  *Modify existing code 
 +  *Translate physical quantities and equations into code
 ---- ----
 ====Activity==== ====Activity====
 ===Handout=== ===Handout===
 +{{ :​repository:​angrybirds.png?​nolink&​600|}}
 ** Angry Birds **  ** Angry Birds ** 
  
Line 23: 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 46: Line 52:
   - Now that we know the angle, we can find our horizontal and vertical components of velocity by simply plugging $\theta$ into the two substitutions above: $v_x=50\cos(39.3°)=38.7$ m/s and $v_y=50\sin(39.3°)=31.6$ m/s.   - Now that we know the angle, we can find our horizontal and vertical components of velocity by simply plugging $\theta$ into the two substitutions above: $v_x=50\cos(39.3°)=38.7$ m/s and $v_y=50\sin(39.3°)=31.6$ m/s.
   - The process for figuring out how to hit the second encampment 52 m above the first one is relatively similar, with two key differences. Firstly, we need to increase the sling-shot speed; at 50 m/s, no matter what angle you aim the bird, it will never reach the encampment. Increasing it to 75 m/s should be sufficient. Secondly, we need to adjust the $y$ in the system of equations from 0 to 52 to model the elevation difference between the two encampments. With these changes, we can follow the process detailed in part 1 & 2. We find that $\theta=25.4°$,​ $v_x=67.7$ m/s, and $v_y=32.2$ m/s.   - The process for figuring out how to hit the second encampment 52 m above the first one is relatively similar, with two key differences. Firstly, we need to increase the sling-shot speed; at 50 m/s, no matter what angle you aim the bird, it will never reach the encampment. Increasing it to 75 m/s should be sufficient. Secondly, we need to adjust the $y$ in the system of equations from 0 to 52 to model the elevation difference between the two encampments. With these changes, we can follow the process detailed in part 1 & 2. We find that $\theta=25.4°$,​ $v_x=67.7$ m/s, and $v_y=32.2$ m/s.
 +
 +{{ :​repository:​angrybirdssolution.png?​nolink&​600 |}}
 +
 ==Post-Coding Solutions== ==Post-Coding Solutions==
 See highlighted code below: See highlighted code below:
 ===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 90: Line 100:
 ---- ----
 ====See Also==== ====See Also====
-  *+  *[[ball_launch | Ball Launch]] 
 +  *[[cirque_du_soleil_stunt | Cirque du Soleil Stunt]]
  • repository/angry_birds.txt
  • Last modified: 2021/02/18 19:41
  • by porcaro1