With the car running, remove the negative battery cable. If it stays running the alt is good and the battery is crap, if it craps out, the alt is bad and the battery is good.
But I would check the charging wire that goes into the alt. It may have loosened up or corroded.
Good luck