Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Python Expert

Python Programming Assignment -

Need to produce a code with object oriented programming using python, which will produce the simulation of the orbits of the planets around the sun and display the animation in 2D. Along with the code, need to produce a project report as well

Project task -

Your task is to produce a simulation of the orbit of the inner planets (Mercury, Venus, Earth, Mars), however, you should code the simulation in such a way that adding new planets does not involve changing the code. The simulation should read the planet details from a file and show the orbit of the planets as they move around the sun in a graphical display. Your code will implement the Beeman integration scheme to update the position and velocity of the planets at each time step. The program should calculate the orbital periods in Earth years, and these should match the actual ratios -so that a day on Mercury should be 4 times shorter than an Earth day. You should also regularly write out to a file the total energy of the system - the sum of kinetic and gravitational potential energy - to check that it is conserved.

Experiments -

Once you have a working code, you should work through some, or all, of the following experiments. Note that most of the marks for the project will be for:

  • producing a code that works
  • investigating at least two questions
  • producing a project report

Satellite to Mars

Two Earth years after the start of the simulation you wish to launch a satellite from Earth to perform a fly-past of Mars.

Question 1: Find initial velocities that will enable a satellite to get close to Mars. Does your satellite ever get back to Earth?

Once you have found a path that lets the satellite get to Mars you should check to see if your journey time is similar to that of NASA's Viking probe.

Care must be taken to start the satellite from just off Earth (so that there is no division by zero) and also to ensure that the starting velocities are realistic - a probe could get to Mars in a few days if it were fired fast enough but carrying that much fuel is prohibitive!

Question 2: Under what conditions is energy conserved (or not) during your simulation? Illustrate your results graphically.

Guidance on Writing the Project Report -

Structure, style and length - Your report should include the following sections:

1. Introduction. A short summary of your project, the experiments that you tackled and the aims of these.

2. Methods. A description of your program design and the algorithms that you implemented.

3. Results and Discussion. The key results from your experiments and a discussion of what they mean.

4. Conclusions. A short recap of the purpose of the project, whether the objectives of your experiments were met and suggestions for future work.

Your report should be a maximum of 3,000 words.

Attachment:- Assignment Files.rar

Python, Programming

  • Category:- Python
  • Reference No.:- M92764790

Have any Question?


Related Questions in Python

Part i the assignment filesone of the most important

Part I: The Assignment Files One of the most important outcomes of this assignment is that you understand the importance of testing. This assignment will follow an iterative development cycle. That means you will write a ...

Project reconnaissance and attack on ics

Project: Reconnaissance and Attack on ICS NetworksEnvironment Setup The second mini project will be based on Industrial Network Protocols, specifically the Modbus protocol. Please follow the instructions carefully to set ...

Homework -this homework will have both a short written and

Homework - This homework will have, both a short written and coding assignment. The problems that are supposed to be written are clearly marked. 1) (Written) Make heuristics Describe two heuristics for the slide problem ...

Question a software company sells a package that retails

Question : A software company sells a package that retails for $99. Quantity discounts are given according to the following table: Quantity Discount 10 - 19 20% 20 - 49 30% 50 - 99 40% 100 or more 50% Write a program usi ...

Question why is software configuration management

Question : Why is software configuration management considered an umbrella activity in software engineering? Please include examples and supporting discussion. The response must be typed, single spaced, must be in times ...

Foundations of programming assignment - feduni bankingthis

Foundations of Programming Assignment - FedUni Banking This assignment will test your skills in designing and programming applications to specification. Assignment Overview - You are tasked with creating an application t ...

Tasksdemonstrate data scraping of a social network of

Tasks Demonstrate data scraping of a social network of choice. Develop technical documentation, including the development of the code & detailing the results. Provide a report on the findings, that includes research into ...

A software company sells a package that retails for 99

A software company sells a package that retails for $99. Quantity discounts are given according to the following table: Quantity Discount 10 - 19 20% 20 - 49 30% 50 - 99 40% 100 or more 50% Write a program using python t ...

Assignment1 utilising python 3 build the following

Assignment 1. Utilising Python 3 Build the following regression models: - Decision Tree - Gradient Boosted Tree - Linear regression 2. Select a dataset (other than the example dataset given in section 3) and apply the De ...

Simple python traffic lightswrite a program that simulates

Simple Python (Traffic lights) Write a program that simulates a traffic light. The program lets the user select one of three lights: red, yellow, or green. When a radio button is selected, the light is turned on, and onl ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As