Question: how do you know if its the starter or alternator?
Answer: You notice that your headlights or your dash lights flicker or get extra dim or bright. Or that your gauges are behaving strangely. If you jump start your car and it will start, but the engine dies right after the jump then it is most likely the alternator.