Cells have electrodes for conducting electrons in and out of the electrical circuit, Zinc is, although a metal itself, resistant to corrosion. Therefore it is used for Electroplating other corrosive metals like iron. Iron is a corrosive metal as it gets corroded very easily and Transisitors are devices based on semiconductors.