The problem is:
Suppose $A$ is a commutative ring and $a \in A$. If $a^2 = a$, prove that the function $\pi_a(x) = ax$ is a homomorphism from $A$ into $A$. Show that the kernel of $\pi_a$ is $I_a$, the annihilator of $a$. Show that the range of $\pi_a $ is $\langle a\rangle$. Conclude by the Fundamental Homomorphism Theorem that $A/I_a\cong\langle a\rangle$.
I'm stuck on the last step. How has $\pi_a$ been shown to be onto/surjective by the above steps?
The question is CH19-D3 from Pinter, Charles C. "A book of abstract algebra. Reprint of the second (1990) edition." (2010).
Using your definition we can modify $\pi$ as follows $ \pi : A \to \langle a \rangle $ then $\pi$ becomes onto and then you can use your theorem about $A/\ker \pi$. Observe this shows that for any homomorphism $\phi : A \to B$ we have $$ A/\ker\phi \cong Im \phi $$