Physics 322 Aum
Physics 322 Aum
vector
-1,3,0
rf-ri
arrow dr
dr
vector
vector
1,3,0
rf-ri
arrow dr
dr
vector
vector
-3,-6,0
-3,-6,0
2,3,0
-3,-6,0
2,3,0
yellow
F1+F2
arrow
Fnet
Fnet
visual
vector
vector
-3,6,0
F1+F2
arrow Fnet
Fnet
Question 12
Notes: Make sure that v.ou P..ilY. attention to correct SIJ.elling, ca1>.ital or small letter cases, commas, and 1>.oints. Make sure that v.ou don't use SJ!ace when com1>.leting the code lines.
Not yet
answered A bullet with a mass of 0.3 kg is fired at an angle of 75° with an initial speed of 18 m/s. Initial position of the bullet is< 0, 0.5 ,0 >. Simulate the bullet's motion. Calculate its final
Marked out of position, its final velocity, and how long it takes for the bullet to hit the ground.
30.00
a. Define the btillet as a sphere. Make radius as 0.3, red color, and make sure you see its trail.
f' Flag
question b. Define the ground as a box with position< 0 , 0 , 0 > and size< 60, 0.4, 10 > . Use green color for this vector.
c. Give mass property to the bullet.
d. Define the net force as the gravitational force. Present it as a vector. (g=9.8 m/s 2 and Fg=m-g).
e. Define the initial velocity of the projectile as a vector based on a given speed and an angle.
f. Initialize the time (t=0) and the increment (dt=0.01).
g. Define a while loop with the condition until the bullet's position in y-direction doesn't reach zero and set the rate to 100.
h. Apply equations of motions (you can find them in the Activity pdf file) to calculate the final position and the velocity of the bullet.
i. Update the velocity with the calculated value.
j. Update the time increment.
k. Print the final time needed for the bullet to hits the ground.
m=0.3
g=9.8 - - - - ~ ~ - - - - -
vector
Fnet=~I 0,-m*g,0
theta=75*pi/180
velocity=! vector 1(18*cos(theta), lB*sin{theta), 0)
t=0
dt=0.01
while bullet.pos.y I >=0):
~-----~
rate
-----------~
velocity= velocity+Fnet/m*dt
bullet.pas bullet.pos+velocity*dt
t+dt
D
print ('t=', t 's ')
sphere 0.3 0.2 orange _trail
box vector vector
vector 0,-m*g,0
vector
bullet.pos.y
rate
velocity+Fnet/m*dt
bullet.pos+velocity*dt
t+dt
t
! " # $
/ 8 May - 14 May
Question 1
Not yet answered
Flag question
Select one:
axis
radius
pos
size
Question 2
Not yet answered
Flag question
Select one:
25pi/180
25/pi/180
25*pi/180
25/pi*180
Question 3
Not yet answered
Flag question
Select one:
#
_#
*
*#*
Question 4
Not yet answered
Flag question
Select one:
None of the choices fits
in/out of the display window
horizontal axis
vertical axis
Question 5
Not yet answered
Flag question
Select one:
bullet=sphere(position=vector(-5,0.15,0), radius=0.1,
color=color.yellow, make_trail=True)
bullet=sphere(pos=vector(-5,0.15,0), radius=0.1,
color=color.white, make_trail=True)
bullet=sphere(pos=vector(-5,0.15,0), radius=0.1,
color=color.yellow, make_trail=True)
bullet=sphere(pos=vector(-5,0.15,0), raduis=0.1,
color=color.yellow, make_trail=True)
Question 6
Not yet answered
Flag question
What is the correct code line to change the type of the trail
from a line to points in visual python:
Select one:
trail.type='point'
trail_type='points'
trail.type='points'
trail_type='point'
Question 7
Not yet answered
Flag question
Select one:
make_trail=True
maketrail=True
make.trail=true
make-trail=True
Question 8
Not yet answered
Flag question
Select one:
v_z
v.vector.z
vector.z
v.z
Question 9
Not yet answered
Flag question
Select one:
pos
radius
axis
size
Question 10
Not yet answered
Flag question
Select one:
print (text)
print ("text')
print ('text")
print ('text')
Next page
Jump to...
Quiz navigation
1 2 3 4 5 6 7 8 9 10 11 12
x
x