I disagree with the close reason since the OP does not have any non-working code and isn't asking for debugging help, but the question should be closed (as too broad or unclear).
The reason is because it isn't actually a question, it is a work order. A good question is something you could walk over to a colleague and ask for an answer. But you wouldn't actually ask your colleague that question since you would be assigning him a task (so it is something your manager would ask of you or one of your teammates).
Pure code conversion questions ("Write this for me in x
") are almost never on-topic because it is extremely difficult to write them in any other way other than a work order.
But you can ask a question about converting code. For example
I am trying to convert this code from language Foo
to language Bar
*[small snippet of code you are trying to convert]*.
So far, I've managed to write
*[your converted code]*.
But when I convert it, I am getting the following syntax error on this line of code
[Syntax error here]
The difference is you did the work yourself and you are asking for a specific problem you had converting the code.