solution:

The attractive force of gravity acts as a centripital force.

eqnarray8

We know r and the gravitiational constant G, but we still need to find tex2html_wrap_inline33 , the angular velocity of the Earth. Angular veloctiy is defined as anglular displacement divided by time, and we know how long it takes the Earth to revolve around the sun (1 year), so...
It takes 365 days for the Earth to go around the sun once. We need to change this to seconds so as to get SI units.

eqnarray14

tex2html_wrap39

The actual mass of the sun is tex2html_wrap_inline37 , less than 1% error!