Answered step by step
Verified Expert Solution
Question
1 Approved Answer
PLEASEEE I NEED THIS CODE IN PYTHON LANGUAGE! Thank You!!! I will rate this answer! Exercise 3.5: Visualization of the solar system The innermost six
PLEASEEE I NEED THIS CODE IN PYTHON LANGUAGE! Thank You!!! I will rate this answer!
Exercise 3.5: Visualization of the solar system The innermost six planets of our solar system revolve around the Sun in roughly circular orbits that all lie approximately in the same (ecliptic) plane. Here are some basic parameters: Radius of orbit (millions of km) 57.9 Object Mercury Venus Earth Mars Jupiter Saturn Sun Radius of object (km) 2440 6052 6371 3386 69173 57316 695500 108.2 149.6 227.9 778.5 1433.4 Period of orbit (days) 88.0 224.7 365.3 687.0 4331.6 10759.2 Using the facilities provided by the visual package, create an animation of the solar system that shows the following: a) The Sun and planets as spheres in their appropriate positions and with sizes proportional to their actual sizes. Because the radii of the planets are tiny compared to the distances between them, represent the planets by spheres with radii C1 times larger than their cor- rect proportionate values, so that you can see them clearly. Find a good value for C1 that makes the planets visible. You'll also need to find a good radius for the Sun. Choose any value that gives a clear visualization. (It doesn't work to scale the radius of the Sun by the same factor you use for the planets, because it'll come out looking much too large. So just use whatever works.) For added realism, you may also want to make your spheres different colors. For instance, Earth could be blue and the Sun could be yellow. b) The motion of the planets as they move around the Sun (by making the spheres of the planets move). In the interests of alleviating boredom, construct your program so that time in your animation runs a factor of C2 faster than actual time. Find a good value of c2 that makes the motion of the orbits easily visible but not unreasonably fast. Make use of the rate function to make your animation run smoothlyStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started