If you've gone through 3 power cords, it's probably the connection to the laptop that's the problem (unless you're tripping over the cord). Unfortunately, it's likely that the main board in the laptop (motherboard) has a loose connection.
Or, if you have had the laptop for more than 2 or 3 years, the battery may be going out. That's cheaper, but check with your folks about this.