Electricity is a viable source of energy because it can be easily transmitted over long distances via power cables and…