quiz1-S13

# B what is the objects x position at t 05 s c what is

This preview shows page 1. Sign up to view the full content.

This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: is the object’s x-position at t = 0.5 s? (c) What is the object’s x-position at t = 5.0 s? 3 +x (m) PHY 1200 – Quiz 1 – Spring 2013 Name: Date: Game Here is a VPython program of a ball that rolls across a level track with uniform motion (It is similar to the one you wrote in class but with two lines missing at the locations of the comment # characters.) Suppose that position is in meters, time is in seconds, and velocity is in m/s. 1 from v i s u a l import ∗ 2 3 4 5 t r a c k=box ( pos=v e c t o r ( 0 , − 0 . 0 7 5 , 0 ) , s i z e = ( 3 , 0 . 0 5 , 0 . 1 ) , c o l o r=c o l o r . w h i t e ) b a l l=s p h e r e ( pos=v e c t o r ( 1 . 5 , 0 , 0 ) , r a d i u s =0.05 , c o l o r=c o l o r . cyan ) 6 7 8 9 10 b a l l . v =0.6 ∗ v e c t o r ( − 1 ,0 ,0) dt =0.01 t=0 11 12 13 14 15 while 1 : rate (100) # # Questions 1. What is the length of the track? 2. Is the ball’s initial position at the right side of the track, at the left side of the track or somewhere in the middle? 3. What is the speed of the ball? (Remember, speed is the magnitude of velocity. Thus, speed is not a vector.) 4. Is the velocity of the ball to the left or to the right? (Or, is it zero?) 5. On line 14, you want to update the position the ball after a time step dt. Write the appropriate line of code. 6. On line 15, you want to update the clock reading t by an amount dt. Write the appropriate line of code. 1...
View Full Document

## This document was uploaded on 03/03/2014 for the course PHY 1200 at High Point.

Ask a homework question - tutors are online