GlowScript 3.2 VPython bullet • (pos=vector(0, =True) ,0), radius ,color=color. ground- make * (pos m=0.5 • (0,0,0, size
Posted: Wed May 18, 2022 6:41 am
GlowScript 3.2 VPython bullet • (pos=vector(0, =True) ,0), radius ,color=color. ground- make * (pos m=0.5 • (0,0,0, size= • (60,0.4,5), color-color.green) g=9.8 Fneta theta=60*pi/180 velocity= * (10*cos(theta), 10*sin(theta), 0) t=0 dt=0.01 while ( >=0); (100) velocity= bullet.pos ta print ('te', 's')
GlowScript 3.2 VPython bullet • (pos=vector(0, =True) ,0), radius ,color=color. ground- make * (pos m=0.5 • (0,0,0, size= • (60,0.4,5), color-color.green) g=9.8 Fneta theta=60*pi/180 velocity= * (10*cos(theta), 10*sin(theta), 0) t=0 dt=0.01 while ( >=0); (100) velocity= bullet.pos ta print ('te', 's')
Notes: Make sure that you pay attention to correct spelling, capital or small letter cases, commas, and points. Make sure that you don't use space when completing the code lines. A bullet with a mass of 0.5 kg is fired at an angle of 60° with an initial speed of 10 m/s. Initial position of the bullet is < 0,0.4,0 > Simulate the bullet's motion. Calculate its final position, its final velocity, and how long it takes for the bullet to hit the ground. 2. Define the bullet as a sphere. Make radius as 0.2, magenta color and make sure you see its trail. b. Define the ground as a box with position <0.0.0 s and size < 60.0.4,5 > Use green color for this vector. Use symbolic name ground. C Give mass property to the bullet ch Define the net force as the gravitational force. Present it as a vector (g-9.8 m/s2 and Fg=m.g) Define the initial velocity of the projectile as a vector based on a given speed and an angle 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. Update the time increment. k. Print the final time needed for the bullet to hits the ground. e + GlowScript 3.2 VPython bullet • (pos=vector(0. 0), radius color=color. make =True) ground • (pos • 0,0,0), sizes • (60,0-4,5), color=color.green) m=0.5 g=9.8 Tnet 수 theta:60 pi/180 velocity • (10*cos(theta), 10 sin(theta), 0) ten dt0.01 while 2-0) (100) velocity bullet pos print it SO)
GlowScript 3.2 VPython bullet • (pos=vector(0, =True) ,0), radius ,color=color. ground- make * (pos m=0.5 • (0,0,0, size= • (60,0.4,5), color-color.green) g=9.8 Fneta theta=60*pi/180 velocity= * (10*cos(theta), 10*sin(theta), 0) t=0 dt=0.01 while ( >=0); (100) velocity= bullet.pos ta print ('te', 's')
Notes: Make sure that you pay attention to correct spelling, capital or small letter cases, commas, and points. Make sure that you don't use space when completing the code lines. A bullet with a mass of 0.5 kg is fired at an angle of 60° with an initial speed of 10 m/s. Initial position of the bullet is < 0,0.4,0 > Simulate the bullet's motion. Calculate its final position, its final velocity, and how long it takes for the bullet to hit the ground. 2. Define the bullet as a sphere. Make radius as 0.2, magenta color and make sure you see its trail. b. Define the ground as a box with position <0.0.0 s and size < 60.0.4,5 > Use green color for this vector. Use symbolic name ground. C Give mass property to the bullet ch Define the net force as the gravitational force. Present it as a vector (g-9.8 m/s2 and Fg=m.g) Define the initial velocity of the projectile as a vector based on a given speed and an angle 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. Update the time increment. k. Print the final time needed for the bullet to hits the ground. e + GlowScript 3.2 VPython bullet • (pos=vector(0. 0), radius color=color. make =True) ground • (pos • 0,0,0), sizes • (60,0-4,5), color=color.green) m=0.5 g=9.8 Tnet 수 theta:60 pi/180 velocity • (10*cos(theta), 10 sin(theta), 0) ten dt0.01 while 2-0) (100) velocity bullet pos print it SO)