C Notes Make Sure That You Pay Attention To Correct Spelling Capital Or Small Letter Cases Commas And Points Mak 1 (81.36 KiB) Viewed 12 times
C Notes Make Sure That You Pay Attention To Correct Spelling Capital Or Small Letter Cases Commas And Points Mak 2 (59.69 KiB) Viewed 12 times
> C. 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.7,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. a. Define the bullet as a sphere. Make radius as 0.6, cyan color, and make sure you see its trail. b. Define the ground as a box with position <0,0,0 > and size < 50,0.2,5>. Use green color for this vector. Use symbolic name ground. Give mass property to the bullet. d. Define the net force as the gravitational force. Present it as a vector. (g=9.8 m/s2 and F,-m-g). Define the initial velocity of the projectile as a vector based on a given a 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. e.