The transistor in Figure is used as a switch to turn the LED on and off. For example, a square wave…
The below Figure illustrates the basic operation of a BJT as a switching device. In part (a), the transistor is in…