Intro and Functions: The 2N2222 is a general purpose bipolar junction NPN transistor. It is commonly used for low power…