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
repository:colliding_crates [2020/02/18 00:21]
porcaro1 [Answer Key]
repository:colliding_crates [2021/02/17 17:36] (current)
porcaro1 [Answer Key]
Line 1: Line 1:
- +=====Colliding Crates=====
 ====Activity Information==== ====Activity Information====
 ===Learning Goals=== ===Learning Goals===
-  * Demonstrate an understanding of how to write equations of motion, given constant velocity (position-time equation)+  * Demonstrate an understanding of how to write equations of motion, given constant velocity (position-time equation) ([[https://​www.nextgenscience.org/​pe/​hs-ps2-1-motion-and-stability-forces-and-interactions | HS-PS2-1]])
   * Develop proficiency in basic programming using the vPython language through GlowScript   * Develop proficiency in basic programming using the vPython language through GlowScript
  
Line 17: Line 16:
 ====Activity==== ====Activity====
 ===Handout=== ===Handout===
 +{{ :​repository:​colliding_crates_1.png?​nolink&​600|}}
 ** Colliding Crates ** ** Colliding Crates **
  
-{{ :​repository:​colliding_crates.png?​nolink&​600|}} 
 In this activity, you will be asked to complete several tasks involving what you have learned about describing motion and applying this knowledge to actual computer program code.  In describing motion at this point, we need to consider both position and velocity. ​ To keep this activity simpler, you will be working with constant velocity, either positive or negative.  ​ In this activity, you will be asked to complete several tasks involving what you have learned about describing motion and applying this knowledge to actual computer program code.  In describing motion at this point, we need to consider both position and velocity. ​ To keep this activity simpler, you will be working with constant velocity, either positive or negative.  ​
  
- +First, you will need to go to GlowScript.org and create your own free account to begin adapting the [[https://​www.glowscript.org/#/​user/​porcaro1/folder/RepositoryPrograms/program/CollidingCrates-Incomplete/edit | computer code]] listed below. ​ Next, select "​create a new program"​ and copy and paste the code below to begin your adventure. ​ Make sure you copy all of it.
-First, you will need to go to GlowScript.org and create your own free account to begin adapting the [[https://​www.glowscript.org/#/​user/​kstedman/folder/Public/program/CollidingCars/edit | computer code]] listed below. ​ Next, select "​create a new program"​ and copy and paste the code below to begin your adventure. ​ Make sure you copy all of it.+
   - Change the size of the box to make it smaller.   - Change the size of the box to make it smaller.
   - You will notice that the red crate is floating above the floor. ​ Put this crate on the floor, far left side, by changing the code.   - You will notice that the red crate is floating above the floor. ​ Put this crate on the floor, far left side, by changing the code.
Line 36: Line 34:
   - How could you make the crates meet sooner/​later?  ​   - How could you make the crates meet sooner/​later?  ​
 ===Code=== ===Code===
 +[[https://​www.glowscript.org/#/​user/​porcaro1/​folder/​RepositoryPrograms/​program/​CollidingCrates-Incomplete/​edit | Link]]
 <code Python [enable_line_numbers="​true"​]>​ <code Python [enable_line_numbers="​true"​]>​
 GlowScript 2.7 VPython GlowScript 2.7 VPython
Line 63: Line 62:
    
 #This creates the graph of the kinetic energy of the crate #This creates the graph of the kinetic energy of the crate
-#f1 = gcurve(color=color.blue) ​                                                 #Setting up a graph to show the kinetic energy of the crate as a function of time +f1 = gcurve(color=color.blue) ​                                                  ​#Setting up a graph to show the kinetic energy of the crate as a function of time 
-#for t in arange(0, 0.94, 0.01): ​                                               # Time goes from 0 to 0.94 in 0.01 time intervals +for t in arange(0, 0.94, 0.01): ​                                                ​# Time goes from 0 to 0.94 in 0.01 time intervals 
-   ​f1.plot(pos=(t,​cratev.mag**2))  ​                                       # plot time vs. kinetic energy of the crate</​code>​+    f1.plot(pos=(t,​cratev.mag**2))  ​                                       # plot time vs. kinetic energy of the crate</​code>​
  
 ---- ----
 ====Answer Key==== ====Answer Key====
 ===Handout=== ===Handout===
 +{{ :​repository:​collding_crates_2.png?​nolink&​600|}}
   - Edit the "​size=vector(20,​20,​5)"​ segment of line 5   - Edit the "​size=vector(20,​20,​5)"​ segment of line 5
   - Edit line 5, changing "​pos=vector(0,​0,​0)"​ to "​pos=vector(-40,​-20,​0)"​   - Edit line 5, changing "​pos=vector(0,​0,​0)"​ to "​pos=vector(-40,​-20,​0)"​
Line 84: Line 84:
  
 ===Code=== ===Code===
-[[https://​www.glowscript.org/#/​user/​kstedman/folder/Public/program/CollidingCarsKey/edit | Link ]]+[[https://​www.glowscript.org/#/​user/​porcaro1/folder/RepositoryPrograms/program/CollidingCrates-Solution/edit | Link ]]
 <code Python [enable_line_numbers="​true",​ highlight_lines_extra="​5,​6,​16,​19,​20,​21,​24,​29"​]>​ <code Python [enable_line_numbers="​true",​ highlight_lines_extra="​5,​6,​16,​19,​20,​21,​24,​29"​]>​
 GlowScript 2.7 VPython GlowScript 2.7 VPython
Line 123: Line 123:
 ---- ----
 ====See Also==== ====See Also====
-[[football_players ​Football Players ​]]+  * [[head-on_collision ​Head-On Collision]] 
 +  * [[rear-end_collision | Rear-End Collision]] 
 +  * [[phineas_&​_ferb | Phineas & Ferb]]
  • repository/colliding_crates.1581985286.txt.gz
  • Last modified: 2020/02/18 00:21
  • by porcaro1