A generator consisting of a coil which rotates between the poles of an electromagnet causing a current…