An alternator converts mechanical energy to electrical energy , .
A motor converts electrical energy to mechanical energy .
An alternator converts mechanical energy to electrical energy , whereas a motor converts electrical energy to mechanical energy .