Outline the sequence of events that occur when a firearm is discharged and a projectile is expelled. Include the following terms: gunpowder, primer powder, hammer, trigger, firing pin, and bullet.