(Animation: ball on curve) Write a program that animates a ball moving along a sine curve, as shown in Figure 1. When the ball gets to the right border, it starts over from the left. Enable the user to resume/pause the animation with a click on the left/right mouse button.
FIGURE 1 The program animates a ball traveling along a sine curve.

We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.