Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
repository:ball_launch [2021/02/18 19:21] porcaro1 |
repository:ball_launch [2021/02/18 19:29] porcaro1 |
||
---|---|---|---|
Line 23: | Line 23: | ||
====Activity==== | ====Activity==== | ||
===Handout=== | ===Handout=== | ||
+ | {{ :repository:ball_launch_1.png?nolink&600|}} | ||
**Ball Launch** | **Ball Launch** | ||
==Part 1== | ==Part 1== | ||
- | Copy and paste the code from this [[https://www.glowscript.org/#/user/donpata27/folder/Public/program/ProjectileMotion | GlowScript program]]. Click the button to launch the ball. Your goal is to hit the target. | + | Copy and paste the code from this [[https://www.glowscript.org/#/user/porcaro1/folder/RepositoryPrograms/program/BallLaunch-Incomplete | GlowScript program]]. Click the button to launch the ball. Your goal is to hit the target. |
- What 3 variables can you change that might enable the ball to hit the target? Ignore drag for right now. | - What 3 variables can you change that might enable the ball to hit the target? Ignore drag for right now. | ||
- Variable 1: | - Variable 1: | ||
Line 53: | Line 54: | ||
^ Variable 2 | 2. | | ^ Variable 2 | 2. | | ||
^ Variable 3 | 3. | | ^ Variable 3 | 3. | | ||
- | ^ Variable 4 (Drag) | | | + | ^ Variable 4 (Drag) | 4. | |
===Code=== | ===Code=== | ||
- | [[http://www.glowscript.org/#/user/donpata27/folder/Public/program/ProjectileMotionwithDrag | Link]] | + | [[https://www.glowscript.org/#/user/porcaro1/folder/RepositoryPrograms/program/BallLaunch-Incomplete | Link]] |
<code Python [enable_line_numbers="true"]> | <code Python [enable_line_numbers="true"]> | ||
GlowScript 2.7 VPython | GlowScript 2.7 VPython | ||
Line 171: | Line 172: | ||
^ Launch Speed (m/s) | 120 | | ^ Launch Speed (m/s) | 120 | | ||
^ Launch Angle (°) | 50 | | ^ Launch Angle (°) | 50 | | ||
- | ^ Free Fall Acceleration (m/s<sup>2</sup> | -10 | | + | ^ Free Fall Acceleration (m/s<sup>2</sup>)| -10 | |
- | ^ Drag Coefficient | 0.008 | | + | ^ Drag Coefficient (-) | 0.008 | |
===Code=== | ===Code=== | ||
- | [[https://www.glowscript.org/#/user/donpata27/folder/Public/program/ProjectileMotionwithDrag | Link]] | + | [[https://www.glowscript.org/#/user/porcaro1/folder/RepositoryPrograms/program/BallLaunch-Solution | Link]] |
<code Python [enable_line_numbers="true", highlight_lines_extra="65"]> | <code Python [enable_line_numbers="true", highlight_lines_extra="65"]> | ||
GlowScript 2.7 VPython | GlowScript 2.7 VPython |