Question: EGR 1 5 0 Computer Methods in Engineering Fall 2 0 2 4 Homework 1 : Projectile Motion Projectile motion is a classic problem in
EGR Computer Methods in Engineering
Fall
Homework : Projectile Motion
Projectile motion is a classic problem in physics, and it is also a good example of breaking
a seemingly complicated problem down into easytomanage parts. The key is that if air
resistance can be neglected, then vertical and horizontal motion are independent of one
another, and we can work on one at a time.
Components of initial velocity: for a given initial velocity and a firing angle we can
calculate the initial velocity in the and directions using cosine and sine:
;
Flight time: if the projectile follows a parabolic path and lands at the same elevation
height as it was launched, then the governing equation can be simplified as follows
is the acceleration of gravity, is final height, is initial height, is flight time:
simplifies
Distance traveled: the projectile travels at a constant horizontal speed the entire time
it is in the air, so the distance traveled is just:
Assignment
Type "diary YourBlazerIDHWdiary" in the command window before you begin
working, and "diary off" when you finish. Whenever you start and stop work on the
assignment, do the same thing each time.
Write a script named "YourBlazerIDHWm that computes projectile motion using
the following steps and features:
choose camelCase names for all of your variables
include comments for the overall script and for each section
specify initial values of for initial velocity, degrees for the firing angle,
and for the acceleration of gravity
calculate the and components of the initial velocity
calculate the flight time
calculate the total distance traveled
display the flight time and distance traveled to the command window, and suppress
all other output
Submit files "YourBlazerIDHWm and "YourBlazerIDHWdiary" on Canvas
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
