[quote]i want the length to be in km & mass to be in g. [/quote]

As you wish, the value has been calculated.  However, the force is very small for your cases!
You can use mouse to drag charge particles or use sliders to change their location!

Actually, you can calculate it with a calculator easily by yourself,too.
Just calculate the distance between two charge particles, then calculate the force between them.

/htdocs/ntnujava/ejsuser/2/users/ntnu/fkh/gravitationforce_pkg/gravitationforce.propertiesFull screen applet or Problem viewing java?Add http://www.phy.ntnu.edu.tw/ to exception site list
Press the Alt key and the left mouse button to drag the applet off the browser and onto the desktop. This work is licensed under a Creative Commons Attribution 2.5 Taiwan License
Download EJS jar file(1523.3kB):double click downloaded file to run it. (20 times by 10 users) , Download EJS source (18 times by 6 users) View EJS source