A bipolar junction transistor (BJT) is a fundamental building block of modern electronics. It is a three-terminal semiconductor device that allows a small current at its base to control a much larger current between its collector and emitter, thus a…