An electric device which transfers current and voltage from one device to another is known as a transformer. Transformer works by gene…