An earthquake is a result of shaking Earth's surface with a quick dispensation of energy in the lithosphere of the…