Write a function that could replace the sinBall function in the
SineBall example, but is more flexible. It should take apppropriate
parameters that specify the values I have coded in as "50" and
"100".
Suppose we wanted to add a ball that falls on the spring in the
LoftedSpring example. Describe briefly how you would set up an
animation to have a ball fall from the sky onto the spring, have it
sit atop the spring as it compresses and uncompresses, then launches
back upward when the spring returns to its full size.