How does the Death Penalty Work?

Depending on the crime committed, and what state it was committed in, the death penalty can be handed down as punishment for a particular crime. It is carried out usually by using lethal injection or by the electric chair.