Lab #11
Using the code we wrote in class this week, make the additions listed below. I mistyped something in class on Wednesday. Please make sure you look at my SolarSystem class. The movePlanets method should have had a line that set r equal to the distance between the sun and the planet. That's the r that should be in the formula below it. Please make that change first.
1. Modify the Planet class so that each planet can be a different size. Hint: you will need to look up the resizemode and shapesize methods in the turtle documentation.
2. The real value for Newton's gravitational constant is G = 6.673e-11. Using this value for G and a time step of 1800, look up the real values for the mass, distance, and velocity of the sun and planets, and create a real model of the solar system.
3. BONUS: Add a moon to the earth or any of the other planets.