Basic Simulation -- Falling Objects -- Template

by phonner
See inside

Basic Simulation -- Falling Objects -- Template

Your task is to create code that does the following experiment Number_of_Trials times:

(1) Places the ball at the Reset position (See Reset)
(2) Chooses a random downward direction for the ball
(3) Makes the ball "fall", bouncing off the edges, until it hits either the black rectangle or the red rectangle
(4) records a "Success" when the black rectangle is hit

Notes and Credits

Shared: 2 Aug 2016 Modified: 6 Aug 2016
Favorite this project 0
Love this project 0
Total views 9
View the remix tree  1
More projects by phonner