a С d Notes: Make sure that you pay attention to correct spelling, capital or small letter cases, commas, and points. Ma

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

a С d Notes: Make sure that you pay attention to correct spelling, capital or small letter cases, commas, and points. Ma

Post by answerhappygod »

 1
1 (84.55 KiB) Viewed 50 times
a С d 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.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 position, its final velocity, and how long it takes for the bullet to hit the ground. Define the bullet as a sphere. Make radius as 0.3, red color, and make sure you see its trail. b. Define the ground as a box with position <0,0,0 > and size < 60,0.4,10 > Use green color for this vector. Give mass property to the bullet. Define the net force as the gravitational force. Present it as a vector. (g=9.8 m/s- 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. Update the velocity with the calculated value. 1. Update the time increment. k. Print the final time needed for the bullet to hits the ground. e f i. GlowScript 3.2 VPython bullet pos=vector(0. 0), radius color-color. make =True) ground . (pos • (0,0,0), size- (60,0.4,10), color-color.green) m=0.3 g=9.8 Fnet theta=75*pi/180 velocity (18*cos(theta), 18*sin(theta), 0) t=0 dt=0.01 while >=0) (100) velocity bullet.pos t print (t=
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply