Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

using Vpaytion and glowscript i need them in codes and stepsphys 172 Write a computer program to model the motion of Mars around the Sun.

using Vpaytion and glowscript i need them in codes and stepsphys 172

image text in transcribed
Write a computer program to model the motion of Mars around the Sun. Use the known period of Mars's orbit to determine an initial approximate velocity. Display a trail so you see the shape of the orbit. Create spheres representing Mars and the Sun. consider the orbital period T=687*24*3600 #s. Calculate the initial momentum of Mars, consider the speed =2*pi*R/T. Initiate a while loop with rate (500). Calculate, and update the force, momenta, and the positions Note: Mars (Mass= 0.642e24 kg, R= 2.288e11 # Orbital radius in m (assuming a circular orbit), radius= 0.05*R), G= 6.67e-11) Sun (Mass= 2e30 kg, radius= 0.05*R)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Conceptual Physical Science

Authors: Paul G. Hewitt, John A. Suchocki, Leslie A. Hewitt

6th edition

013408229X, 978-0134082295, 9780134080512 , 978-0134060491

More Books

Students also viewed these Physics questions

Question

compare and contrast positivity and negativity;

Answered: 1 week ago

Question

1. To gain knowledge about the way information is stored in memory.

Answered: 1 week ago