Convert c++ function into LabVIEW (American Option Pricing)

Closed - This job posting has been filled and work has been completed.

Job Description

I have a C++ implementation of a really short function which calculates the value of an American-style Stock options (Binomial Tree Method) and I would like to convert this into a LabVIEW vi. I prefer LabVIEW 2011, but if all you have is an earlier version that will be sufficient as I will convert it into LabVIEW 2011 format myself.

You do not have to make the same helper functions that I used for my C++ code, all you have to do is make sure that the main function would work if it called your function in LabVIEW instead of my function in C++.

I have attached the C++, which you can use as a guide for writing the LabVIEW code.

Look at the function named "priceAmericanOption", if you can write a vi that gets the same results as the two samples called from main, that is acceptable! (You do not need to make it work for other cases, - I can handle tweaking the code for any such issues/problems)

Open Attachment