start the car and check the voltage at the battery. If you got around 14 volts the battery is probably toast. If you have less than 12 it's the alternator. You can also take them both to most part stores and they will load test them for you