What determines the polarity at the ends of an electromagnet? The
A
magnitude of the current passing through the wire
B
material of the core of the magnet
C
material of the coil
D
direction of current in the wire