If the cord is fine, then it is probably the battery. While they are a pain to replace in some devices, they are replaceable.
If the tablet is under warranty still, contact the manufacturer about it. If it isn't no longer under warranty, then it is up to you if you want to try and do the replacement yourself, or take it to a local tech to do it for you.