Along with k, the program needs to know the value of the charges and their separation. Let's look at a few NetLogo interface buttons to see how to set values using the slider bar. At the top of the NetLogo window, you'll see a little lock sign next to the phrase "Mode: Interactive". Click on this lock and it should change to "Mode: Authoring". Now right click on the button that controls charge_1, and click "edit". The value of "charge_1" is a "global variable" because it works throughout the whole program. Try changing it to another name such as your name, and click "OK".
What happened? Why do you think this happened? Could you change the code in such a way that this name would work?