An electric generator converts :
(a) electrical energy into mechanical energy
(b) mechanical energy into hear eneregy
(c) electrical energy into chemical energy
(d) mechanical energy into electrical energy
_________ is a device which converts electrical energy into mechanical energy.