What type of machine converts electrical energy to mechanical energy using magnetism?
A. boiler
B. generator
C. motor
D. turbine