Question: You will write a script ( . mlx ) to calculate and plot the x , y coordinates of a projectile ( see basic physics
You will write a script mlx to calculate and plot the xy coordinates of a projectile see basic physics equations below Here are the requirements
The user will input the starting velocity from ms and angle in degrees from
The script will determine how long the projectile is in the air, then divide that time into at least internals
The script will calculate the initial y velocity and the x velocity x velocity is constant in this type of motion
The script will calculate the x & y location for each time point from # using velocities from # and physics relationships below
The script will plot both x vs t and y vs t with each plot having properly labeled axes and showing data both as point markers and a line
The script will ask the user to identify the maximum y height from the y vs t plot and check with calculation
The script will have adequate commentingdocumentation such that any classmate could run and modify the script easily
Bonus if your script checks if the input velocity and angle are within bounds and errorsmakes them reinput if incorrect
Physics equations nkjkj
initial velocity in y vyinitialinput velocity sin input angle
velocity in x vxinput velocity cos input angle velocity in x is constant in this type of motion
total time projectile is in the air t vyinitial
x displacement xt vxt
y displacement yt vyinitial t t
max y height vyinitial
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
