An electron donor is a doping atom (impurity) that, when added to a semiconductor, can form an n-type semiconductor. An electron acceptor is a doping…