The blue and red balls have the same size, shape, and composition. They have a coating of graphite paint, which makes their surfaces good conductors. The red ball, hanging from a long thread, is initially uncharged while the blue ball has been charged by momentarily touching it to a plastic strip rubbed with fur. The blue ball, which is attached to a horizontal insulating handle, is momentarily touched to the red ball.
In order to see the state of the red and blue balls after this momentary contact, click the step button (>>) once. The red ball deflects away from its initial equilibrium position. Note that the X-coordinates of the balls are given as outputs. These enable one to determine the separation of the balls and the horizontal deflection of the red ball. Both of these are related to electrostatic force that either ball exerts on the other.
Click on the step (>>) button to move the right charge toward the left in increments of 0.01 m and view the corresponding position of the red ball. (Don't use the play button, >, as this may give incorrect results.)
Step through the animation and take data on horizontal deflection of the left ball vs. separation of both balls. Graph and fit the data appropriately. Use a coefficient from the fit to determine the charge on either ball. In order to determine the relationship between the coefficient and the charge, you'll need to do a theoretical force analysis of the situation. In order to simplify the math, assume that the angle that the string makes with the vertical is small. This will allow you to say that the angle and its sine (or tangent) are approximately equal.