Problem 42689. Distance a ball travels after throwing vertically
Calculate the total distance 'd' (in meters) a ball would travel after 's' seconds and starting velocity of 'v' (in m/s). "Please note that its not relative distance but total distance travelled"
gravity=10 m/s^2
Example: initial speed = +20, how long does the ball travel after 2.5 sec d=21.25
Solution Stats
Problem Comments
-
3 Comments
Peng Liu
on 25 Nov 2015
A test case for s < v/10 is missing.
Ben Petschel
on 20 Sep 2016
I think test cases 3 and 4 are wrong.
Case 3 (v=20, s=12.5) should have d=571.25
Case 4 (v=5, s=5) should have d=102.5
Jihye Sofia Seo
on 12 Feb 2017
Specify the direction of initial velocity, is it vertical, or horizontal?
Solution Comments
Show commentsProblem Recent Solvers54
Suggested Problems
-
Sum of odd numbers in a matrix
589 Solvers
-
458 Solvers
-
300 Solvers
-
959 Solvers
-
Generate the sum of Squares of the given number
102 Solvers
More from this Author2
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!