This is the 2nd time it has happened. When I have my laptop plugged in, the battery light flashes as if it were low and about to die. Then I take the battery out and a couple of days later it works just fine. Is there a problem with my battery or my computer?

Your battery is discharged and can no longer accept charges. Time to buy a replacement battery.