The function of an alternator in an automobile is to ...
Supply electric power
Convert mechanical energy into electrical energy
Continually recharge the battery
Partly convert engine power into electric power