This electric generator is a device that converts mechanical energy to electrical energy. The reverse…