calculate the attractive force between earth and sun. Neglect the radii, D= 1.50X10

You have not provided an exponent, definition or units for D.

You will need to look up the masses of the sun and the earth, and then use the formula

F = G*M1*M2/D^2