Your projectile motion code works for a mass near the surface ofthe earth. But gravity is a force which also determines the motionof the earth around the sun (and of stars in the milky way aboutthe black hole at the center of our galaxy…). Write a moleculardynamics code for the ‘Kepler Problem’ of the earth orbiting thesun. easy to review “newtons universal law of gravity” anddetermine the forces in the x,y directions, useful.***** Pleaseonly help if you know how to do it 100% correctly and please answerall questions and include plots. Thank you!
You might also need:
G= 6.6 x 10^-11 m^3/(kg
OR
OR