Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I was wondering whether you could translate the project I have attached (written in Java) to Python 3. As you will see, the project contains

I was wondering whether you could translate the project I have attached (written in Java) to Python 3. As you will see, the project contains 9 files (it is a simulation - you can see the details of it in the desc.PNAS_model.pdf file). I would only need the following files transcribed:

-Main.java

-MainAxisTool.java

-MetaPopulation.java

-Population.java

-Tool.java

-ToolLocationTriplet.java

The place to start is Main.java, which is what's run automatically by default in java.

As you can see, what it does is set a name for the run, and then runs 20 instances of the simulation one after the next, by calling mmain. The main thing that mmain does is set some parameter values and build instance of the object "MainGame", and run it. This is the heart of the simulation, found in the file MainGame.java.

Follow what it calls and so on.

Some hints that may help you understand as you go -

* lots of things are commented out. You can completely ignore those.

* The same code was used for different variations on the theme, slightly different questions, and so on. Thus, some parts of the code are commented out or never activated, and some others don't really does anything (fields of objects that are never used, etc.). You can ignore those too.

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_2

Step: 3

blur-text-image_3

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

Professional Android 4 Application Development

Authors: Reto Meier

3rd Edition

1118223853, 9781118223857

More Books

Students also viewed these Programming questions