Is there a way to determine whether it is your battery or your alternator that needs to be fixed on a 98 4WD 3.1 L Olds Achieva?

Go to Auto Zone and have them both checked out for free.