Which device uses mechanical energy to produce electrical energy?

a
Electric Motor
b
Generator
c
Solar Cell
d
Magnet

b. Generator