Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started