Answer :
The amount of electric current in the coil and the number of turns of wire
in the coil directly determine the strength of the electromagnet.
But the voltage of the battery determines the amount of current through
the wire, so the battery voltage is also indirectly involved.