The generators have turbines that rotate utilizing kinetic energy of another resource like water in dam, steam, wind etcetera. On rotation of the turbine, the magnetic subject & conductors interacts with one another & generates electricity.The conversion of sunshine energy into electrical energy is called photovoltaic result. In this process, the f