Convert Python to Java + small fix in order to create the correct and expected output file

Виконано Опубліковано %project.relative_time Оплачується при отриманні
Виконано Оплачується при отриманні

In this project, I would like to convert 6 files written in python to be written in java. The Java code should do the exact same thing as the python code does with 1 smaill fix and 1 small code addition when creating the java.

The input argument of the code is a directory containing a jack file. The output is a vm file (with the same name as the jack file within the directory).The input dir should be read from any relative path (e.g. ..\..\<dir_name>).

The fix that is required is to do the same for all tests input (attached [login to view URL]) - as the code does for mostt of them. Currently the code creates the correct vm file for all the input test directories except for one - the Snake directory - this should be fixed in the coverted java code.

The addition I want is the following:

Now the code know the following possible operators (known jack operators):

+, -, *, /, &, |, <, >,=

I also need to add the possibilty that the ^ operator will be seen in the input jack file and it should be processed like the other operators when creating the output vm file.

Attached:

1. Python source file that should be coverted to java ([login to view URL])

2. Directories that are given as the input arguments ([login to view URL])

3. The same directories with the expected outcome after running the code (the same dir containing the jack file and the created vm file).

* The vm files in this zip are the correct and the expected vm files the code should create.

ETA: 3 days.

Java Python

ID Проекту: #7001679

Про проект

11 заявок(-ки) Дистанційний проект Остання активність Jan 26, 2015

Доручено:

kostyaf

I've bid on your previous project where you require to fix Java sources for *.jack files, but was not chosen. Could you please explain why previous Java source code isn't suitable any more? I'm ready to convert all Pyt Більше

$72 USD за 3 дні(-в)
(22 відгуків(-и))
5.0

11 фрілансерів(-и) готові виконати цю роботу у середньому за $98

lovinagarwal21

I have 9+ years of exp in c c++ java j2ee hibernate spring webservices databases. Done multiple projects like this and almost proficient in design patterns..Checkout my reviews, all projects were completed successfully Більше

$111 USD за 3 дні(-в)
(127 відгуків(и))
7.3
Fortut

A proposal has not yet been provided

$70 USD за 3 дні(-в)
(100 відгуків(и))
5.9
anuyadav1

A proposal has not yet been provided

$100 USD за 3 дні(-в)
(61 відгуків(и))
5.9
alexyer

Hi! I have 3 year experience in python and java development and can start working immediately. Regards, Olexander

$300 USD за 3 дні(-в)
(10 відгуків(и))
4.2
Nkokila

A proposal has not yet been provided

$77 USD за 3 дні(-в)
(12 відгуків(и))
4.0
handerman

A proposal has not yet been provided

$66 USD за 2 дні(-в)
(5 відгуків(и))
3.8
ankit283037

I am a fast coder and usually write bug-free code. I won over 30 competitions in algorithms and development. No upfront milestones or payments required. I believe I can handle your project well. I reply within 24 hours Більше

$70 USD за 3 дні(-в)
(0 відгуків(и))
0.0
phsuzana

I work with Java and Python in many of my projects. I can do this in five days, maybe before this deadline.

$55 USD за 5 дні(-в)
(0 відгуків(и))
0.0
prajaktcs

A proposal has not yet been provided

$88 USD за 2 дні(-в)
(0 відгуків(и))
0.0