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:phineas_ferb [2021/02/16 23:32]
porcaro1 [Activity]
repository:phineas_ferb [2021/02/17 18:55]
porcaro1 [Answer Key]
Line 17: Line 17:
 ====Activity==== ====Activity====
 ===Handout=== ===Handout===
 +{{ :​repository:​phinease_ferb_1.png?​nolink&​600|}}
 ** Phineas & Ferb **  ** Phineas & Ferb ** 
  
Line 29: Line 30:
     - Final time     - Final time
 ===Code=== ===Code===
-[[https://trinket.io/glowscript/b53b073702 ​| Link]]+[[https://www.glowscript.org/#/​user/​porcaro1/​folder/​RepositoryPrograms/​program/Phineas&​Ferb-Incomplete ​| Link]]
 <code Python [enable_line_numbers="​true"​]>​ <code Python [enable_line_numbers="​true"​]>​
 GlowScript 2.7 VPython GlowScript 2.7 VPython
Line 71: Line 72:
 #Motion of P_F before Candace starts moving #Motion of P_F before Candace starts moving
 while t < t_CandaceDelay:​ while t < t_CandaceDelay:​
-    ​rate(500)+   rate(500)
        
        
Line 103: Line 104:
 ====Answer Key==== ====Answer Key====
 ===Handout=== ===Handout===
-  - The process for determining where and when Candace will be able to take a photo of the boys (i.e. when Candace'​s position intersects with Phineas and Ferb'​s) starts by breaking the problem down into two parts: before and after Candace begins moving. If we define Candace as being at the origin ($x=0$), then we must first determine where Phineas and Ferb are once Candace gets on her scooter. To do this, we can use the following kinematic equation (which will helpful for the entire problem): $x=x_0 + vt + at^2$, where $x$ is current position, $x_0$ is initial position, $v$ is velocity, $a$ is acceleration,​ and $t$ is time. We know Phineas and Ferb start 20 m to the left of Candace, they are travelling at a constant velocity of 4 m/s, and it takes Candace 20 seconds to get on her scooter, therefore we can find where Phineas and Ferb are in relation to Candace: $x=-20 + 4(20) + 0(20)^2 = 60$. Phineas and Ferb are 60 m to the right of Candace when she starts her scooter. Next (similarly to the [[https://​www.msuperl.org/​wikis/​icsam/​doku.php?​id=repository:​head-on_collision | Head-On Collision]] and [[https://​www.msuperl.org/​wikis/​icsam/​doku.php?​id=repository:​rear-end_collision | Rear-End Collision]] activities) we will create a system of equations describing the motion of Phineas and Ferb and Candace and solve for the unknown variables.+  - The process for determining where and when Candace will be able to take a photo of the boys (i.e. when Candace'​s position intersects with Phineas and Ferb'​s) starts by breaking the problem down into two parts: before and after Candace begins moving. If we define Candace as being at the origin ($x=0$), then we must first determine where Phineas and Ferb are once Candace gets on her scooter. To do this, we can use the following kinematic equation (which will helpful for the entire problem): $x=x_0 + vt + at^2$, where $x$ is current position, $x_0$ is initial position, $v$ is velocity, $a$ is acceleration,​ and $t$ is time. We know Phineas and Ferb start 20 m to the left of Candace, they are travelling at a constant velocity of 4 m/s, and it takes Candace 20 seconds to get on her scooter, therefore we can find where Phineas and Ferb are in relation to Candace: $x=-20 + 4(20) + 0(20)^2 = 60$. Phineas and Ferb are 60 m to the right of Candace when she starts her scooter. Next (similarly to the [[https://​www.msuperl.org/​wikis/​icsam/​doku.php?​id=repository:​head-on_collision | Head-On Collision]] and [[https://​www.msuperl.org/​wikis/​icsam/​doku.php?​id=repository:​rear-end_collision | Rear-End Collision]] activities) we will create a system of equations describing the motion of Phineas and Ferb and Candace and solve for the unknown variables. ​$$x_{P\text{&​}F}=60+4t$$ $$x_C=\dfrac{1}{2}*2*t^2$$ 
 +  -  
 +{{ :​repository:​phineas_ferb_2.png?​nolink&​600 |}}
 ===Code=== ===Code===
 +[[https://​www.glowscript.org/#/​user/​porcaro1/​folder/​RepositoryPrograms/​program/​Phineas&​Ferb-Solution | Link]]
 <code Python [enable_line_numbers="​true",​ highlight_lines_extra="​42,​45,​52,​55,​56,​61,​62,​63,​64,​65"​]>​ <code Python [enable_line_numbers="​true",​ highlight_lines_extra="​42,​45,​52,​55,​56,​61,​62,​63,​64,​65"​]>​
 GlowScript 2.7 VPython GlowScript 2.7 VPython
Line 179: Line 183:
 ---- ----
 ====See Also==== ====See Also====
-  *+  *[[colliding_crates | Colliding Crates]] 
 +  *[[head-on_collision | Head-On Collision]] 
 +  *[[rear-end_collision | Rear-End Collision]]
  • repository/phineas_ferb.txt
  • Last modified: 2021/02/17 19:08
  • by porcaro1