Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
repository:beating_the_train [2020/03/17 18:38] porcaro1 [Answer Key] |
repository:beating_the_train [2021/02/18 19:12] (current) porcaro1 [Answer Key] |
||
---|---|---|---|
Line 8: | Line 8: | ||
===Prior Knowledge Required=== | ===Prior Knowledge Required=== | ||
* Units | * Units | ||
- | * Dimensional Analysis | ||
* Kinematic Equations | * Kinematic Equations | ||
* Newton's 2nd Law of Motion | * Newton's 2nd Law of Motion | ||
Line 14: | Line 13: | ||
===Code Manipulation=== | ===Code Manipulation=== | ||
* Modify existing code | * Modify existing code | ||
- | * [[https://www.glowscript.org/#/user/kstedman/folder/Public/program/CollidingCars|Colliding Crates]] | + | * [[colliding_crates|Colliding Crates]] |
---- | ---- | ||
====Activity==== | ====Activity==== | ||
===Handout=== | ===Handout=== | ||
+ | {{ :repository:beating_the_train1.png?nolink&600|}} | ||
**Beating the Train**\\ | **Beating the Train**\\ | ||
+ | |||
A train is approaching a crossing, traveling at a constant velocity if 15 m/s to the east. You are on an afternoon ride on your motorcycle when you get stopped at a stoplight 50 m south of the crossing. At the instant the light turns green, the train is 90 m west of the crossing. Your mass, including the motorcycle, is 400 kg | A train is approaching a crossing, traveling at a constant velocity if 15 m/s to the east. You are on an afternoon ride on your motorcycle when you get stopped at a stoplight 50 m south of the crossing. At the instant the light turns green, the train is 90 m west of the crossing. Your mass, including the motorcycle, is 400 kg | ||
Line 26: | Line 27: | ||
- Modify the [[https://www.glowscript.org/#/user/kstedman/folder/Public/program/CollidingCars| Colliding Crates]] program to fit this scenario. | - Modify the [[https://www.glowscript.org/#/user/kstedman/folder/Public/program/CollidingCars| Colliding Crates]] program to fit this scenario. | ||
===Code=== | ===Code=== | ||
- | [[https://www.glowscript.org/#/user/kstedman/folder/Public/program/CollidingCars| Link]] | + | [[https://www.glowscript.org/#/user/porcaro1/folder/RepositoryPrograms/program/BeatingtheTrain-Incomplete| Link]] |
- | <code Python [enable_line_numbers="true", highlight_lines_extra=""]> | + | <code Python [enable_line_numbers="true", highlight_lines_extra="0"]> |
GlowScript 2.7 VPython | GlowScript 2.7 VPython | ||
Line 61: | Line 62: | ||
====Answer Key==== | ====Answer Key==== | ||
===Handout=== | ===Handout=== | ||
+ | {{ :repository:beating_the_train2.png?nolink&600|}} | ||
- To find the time it will take for the train to reach the crossing, divide the distance between the train and the crossing by the velocity of the train: | - To find the time it will take for the train to reach the crossing, divide the distance between the train and the crossing by the velocity of the train: | ||
- $t=\dfrac{90\text{m}}{15\text{m/s}}=6\text{s}$ | - $t=\dfrac{90\text{m}}{15\text{m/s}}=6\text{s}$ | ||
Line 88: | Line 90: | ||
- See below | - See below | ||
===Code=== | ===Code=== | ||
+ | [[https://www.glowscript.org/#/user/porcaro1/folder/RepositoryPrograms/program/BeatingtheTrain-Solution | Link]] | ||
<code Python [enable_line_numbers="true", highlight_lines_extra="3,4,16,17,18,19,20,21,22,23"]> | <code Python [enable_line_numbers="true", highlight_lines_extra="3,4,16,17,18,19,20,21,22,23"]> | ||
GlowScript 2.7 VPython | GlowScript 2.7 VPython | ||
Line 124: | Line 127: | ||
---- | ---- | ||
====See Also==== | ====See Also==== | ||
+ | * [[terminal_velocity | Terminal Velocity]] |