The gravitational constant is the proportionality constant used in Newton's Law of Universal Gravitation, and is commonly denoted by G.…