What is the function of a generator in a power plant?
A) Convert chemical energy to mechanical energy
B) Convert mechanical energy to electrical energy
C) Convert thermal energy to mechanical energy
D) None of the above