Question: how do you know if its the starter or battery or alternator?
Answer: When you attempt to start the car, there is a low whining sound.
If jump starting gets your engine started and running, but the car will not start again once you turn it off, the battery is probably the problem.