razor/knife (to strip the wires if no tool for it)
The tools needed to fix the cordFirst what you will need to do is use a wire cutter and cut the cord on both sides of the bad part on the wire. Then you need to strip the plastic outer coating off to show the wires inside. You can do this with a razor blade or a knife just try not to cut any of the wires on the inside when doing this.
Cords stripped and separatedDepending on which side of the cord is bad what you need to do is just tie the alike wires together (color coded or different styles). To tie the wires together you can use electrical tape. Just twist the wires together and then tape em' up. Tape the different sets of wires separate from each other. Once you are done with this you can tape all the wires together just make sure that none of the wires are showing through and can touch the other wires. This can short things out and then you would have to redo everything.
Cord all tied up with electrical tapeAfter everything is taped up it's ready to test it out and see if you have done it correctly. You may not want to have it plugged into your laptop on the first attempt to plug the cord into the wall. If everything is good no sparks or anything unusual you can then plug in to your laptop. If all is good you should see the lights come on to notify you that the computer is being charged. You are now done and have saved on a bit of money by not having to buy a new cord.
Up and running fine