Write a computer program to model the motion of a spacecraft of mass 150000 kg that is launched from a location 10 Earth radii from the center of the Earth. Start with a At=60 s and initial speed= 2000 m/s in a direction perpendicular to the line between the spacecraft and Earth. Create a sphere representing the spacecraft. Consider the radius=0.1*Earth radius (although it is much smaller, we would not see it if we chose any smaller value) and make sure to leave a trail. Create a sphere representing Earth, set it at the origin. Initiate a while loop with rate (1000). Calculate F, ,|F1, F and update the force, momenta, and the positions Note: Earth (Mass= 6e24, Radius= 6.4e6), G= 6.67e-11 in SI

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter5: Repetition Statements
Section: Chapter Questions
Problem 2PP: (Mechanics) The deflection at any point along the centerline of a cantilevered beam, such as the one...
icon
Related questions
Question
please answer within 30 minutes.
i need this in vPython code web
vPython vPython
vPython
Write a computer program to model the motion of a spacecraft of mass 150000 kg that is launched
from a location 10 Earth radii from the center of the Earth. Start with a At=60 s and initial speed=
2000 m/s in a direction perpendicular to the line between the spacecraft and Earth.
Create a phere representing the spacecraft. Consider the radius=0.1* Earth radius (although it is
much smaller, we would not see it if we chose any smaller value) and make sure to leave a trail. Create
the origin.
a sphere representing Earth, set it a
Initiate a while loop with rate (1000).
Calculate 7, +, F1, F and update the force, momenta, and the positions
Note: Earth (Mass= 6e24, Radius= 6.4e6), G= 6.67e-11 in SI
Transcribed Image Text:i need this in vPython code web vPython vPython vPython Write a computer program to model the motion of a spacecraft of mass 150000 kg that is launched from a location 10 Earth radii from the center of the Earth. Start with a At=60 s and initial speed= 2000 m/s in a direction perpendicular to the line between the spacecraft and Earth. Create a phere representing the spacecraft. Consider the radius=0.1* Earth radius (although it is much smaller, we would not see it if we chose any smaller value) and make sure to leave a trail. Create the origin. a sphere representing Earth, set it a Initiate a while loop with rate (1000). Calculate 7, +, F1, F and update the force, momenta, and the positions Note: Earth (Mass= 6e24, Radius= 6.4e6), G= 6.67e-11 in SI
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Random Class and its operations
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr