Question: how are debit and credit cards related to magnetism?
Answer: The magnetic strip on a card can be 'written' or encoded with information because the tiny iron-based particles that make up the strip can be magnetized in different directions by a device that produces a strong magnetic field. This device is a 'solenoid', which is basically a coil wound into a tightly packed helix.