An electric generator converts mechanical energy into electrical energy by utilizing a rotating mechanism and electromagnetic induction.