Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

A ball is launched with velocity, v=25ft/s, and a launch angle, =45 degrees. The vertical and horizontal positions of the ball are given by h(t)=h0+v0sin()t21gt2x(t)=v0cos()t+x0

image text in transcribed

A ball is launched with velocity, v=25ft/s, and a launch angle, =45 degrees. The vertical and horizontal positions of the ball are given by h(t)=h0+v0sin()t21gt2x(t)=v0cos()t+x0 Vertical Position Horizontal Position The code below describes the trajectory of an object and will help get you started. Create a new function called L5_SectionNum_Lastname_Firstname. Make changes to the code above to convert it to a function with two inputs: v and theta, and two outputs: h and x. Delete line 1 when creating the function. Check your function with the following conditions: - A launch angle of 45 degrees (delete line 2: theta =45 and enter as input to your function) - Object has a velocity of 25ft/s (delete line 3:v=25 and enter as input to your function) Make additional changes to your code: - Rather than constraining the height of the object as in line 9 ; while h(k)>0.001, constrain the time to 3 seconds (change line 12 : while t(k)

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

Fundamentals Of Database Management Systems

Authors: Mark L. Gillenson

2nd Edition

0470624701, 978-0470624708

More Books

Students also viewed these Databases questions

Question

Whether the board has jurisdiction to conduct an election.

Answered: 1 week ago