Almost all electronic devices and circuits need a dc source of power for their operation. While batteries and dry cells…