The photoelectric effect is the emission of electrons or other free carriers when light shines on a material. Electrons emitted…