Python Forum

Full Version: Ball bouncing down a ramp
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello, this is a homework assignment and I just dont understand much about python. If anyone can help get me in the right direction that would help a lot. How would I program a ball to bounce down a ramp and to be able to input the ramps height and length, while also calculating the amount of times the ball bounces on the ramp.
What have you tried? We're not big on writing code for people here, but we would be happy to help you fix your code when you run into problems. When you do run into problems, please post your code in Python tags, and clearly explain the problem you are having, including the full text of any errors.