Renewable energy term is used to describe energy sources that are constantly replenished. Renewable energy has been gaining popularity in…