A rectangular coil of wire can rotate in a magnetic field. The ends of the…