How does a generator use an electromagnet?
A:Electricity is passed through a wire to generate a magnetic field.
B:An electric field allows a magnet to pick up heavy materials.
C:A coil is used to move a cone to produce sound.
D:A coil of wire moves through a magnetic field to make electricity.