Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please use Python. 0 Problem 3 Modification of the ground (5 pts) In this problem, we want to replace the flat ground from the previous

Please use Python.

image text in transcribed

0 Problem 3 Modification of the ground (5 pts) In this problem, we want to replace the flat ground from the previous problem with a ground that starts sloping up at angle a some distance d, from the launching point, then gets flat again after another distance d2. Mathematically, this translates to a ground defined as for r d. + d. Note: For all graphs in this part and the next, use dy = 6 m. d2 = 4 m, and a slope angle a=30 This case is a bit more tricky as the ground is represented by different functions for different values of the I coordinate. We can define a ground function using if statements, but the presence of the if statements prevents the function to work for an array argument. Since our goal here is just to plot the ground, the easiest way to deal with this is to use a loop to calculate the data needed for the plot command. That is the approach you should use here (unless you want to find a better way as a challenge). In this problem, we basically want to create a plot similar to that of the previous problem including 3 different trajectories for the rock, one landing on each "part of the ground (vary both vo and 8, to get your trajectories). As in the previous problem, use the graphical window to "read out" the coordinates of the landing point of the rock in each case, and use these values to: stop the trajectories at the landing point (Hint: try to redefine the array of r posi- tions...) add a (visible) black circle at the landing point. add a label at each landing point indicating the range, as in r = 4.5 m (Hint: Try the annotate method). (optional) use the coordinates of the landing points as tick marks and labels on the vertical axis (labels should have only one digit after the decimal point)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Technology And Management Computers And Information Processing Systems For Business

Authors: Robert C. Goldstein

1st Edition

0471887374, 978-0471887379

More Books

Students also viewed these Databases questions