Hammer in an electric bell is the part which strikes the gong.
Electric current obtained in the battery is direct current.
Soft iron core placed in a solenoid act as en electromagnet.
The device in which mechanical energy is converted into electrical energy is dynamo.
Hans christen Oestered discovered electromagnetism.