An electric circuit consists of a resistor. a battery and a key. If the voltage…