DOC PREVIEW
DREXEL PHYS 113 - Recitation Assignment 8

This preview shows page 1 out of 2 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 2 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 2 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

PHYSICS 113 – Recitation Assignment 8NameRecitation Assignment # 8November 15, 2006You may complete this in class. However, if you are unable to do so, it is expected that youcomplete this for recitation next time.If you have any questions, please ask.Note that it is expected that you will look at your previous recitation assignments (and the onlinedocumentation!) to help you understand the assignment. Please refer to these frequently, and tryto understand what the code is actually doing.New Python Concepts: controls (sliders and buttons), lablels, functions,New Physics Concepts: Friction1. I have put a file called prog8 starter.py on the course homepage. Please download it intoyour recitation directory.2. There is a note in the incomplete program where you should add the physics. In particular, Iwant you to add a loop which will shoot a projectile with an initial velocity given by ball.v,until the ball has a y-position lower than zero. In particular, I also want you to have anacceleration of: −gm/s2ˆj due to gravity (where g=9.8 is pre-set into the program, and canbe adjusted). In addition, you want to introduce an air resistence of:Fr=12CρAv2where C is a geometric factor (typically between 0.3 and 1, and, ρ is the density of theair, ∼ 1.3kg/m3, and A is the surface area of your object (say 0.01m2for s ome thing like abaseball). In this case, we have a coefficient of:Fr' 0.003kgmv2or a friction deceleration ofar' 0.003(meters)−1v2in the opposite direction of the direction of motion.Note that in this approximation, the mass of the ball never enters into it at all!Add in the air resistence term as well. The “mu” in your code should be a normalizing factorsuch that:ar' µ × 0.003(meters)−1v23. That’s it! That’s all that’s required. However, if you’d like to have some fun, you may trysome of the following:• Change the randomization process so that the “target” app ears in a random y-positionas well as a random distance from the gun.• Add a scoring procedure to make this a more interesting game.• Change the target to look like a person – (Use the power of VPython to make a coolobject.)• Add an additional control to give rocket power to the


View Full Document

DREXEL PHYS 113 - Recitation Assignment 8

Download Recitation Assignment 8
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Recitation Assignment 8 and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Recitation Assignment 8 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?