It's the alternator without a doubt. Had it happen to a few of POS cars I owned in my late teens, early 20s. THere's really no preventive maintenance for it, parts wear out. You can probably get a rebuilt one. I've actually installed one myself, but if you really have no experience with mechanical issues, just let the professionals handle it.