What would happen if you placed a compass near an electromagnet when there is an electric current in the coil of the electromagnet? Why would this happen? What if you flipped the electromagnet around so the end that was closest to the compass is now farthest away?