Question: how can you tell if it your battery or alternator that bad?
Answer: A simple test to check the working of the alternator is by running your car; and then unplugging the positive connection of the battery. If the car stops, then you most likely have a problem with the alternator. Another simple test is to check your interior lights.