Solar energy is a rapidly growing source of renewable energy that has the potential to replace traditional energy sources that…