Find Jobs
Hire Freelancers

convert simple c algorithm into php

$30-100 USD

进行中
已发布将近 12 年前

$30-100 USD

货到付款
I have a simple c program that I need to be converted into php. I will attach the original c program that you can execute from a dos prompt and test results. I am including source code and test results as well. ## Deliverables Here's the info regarding the algorithm written in C that must be converted to PHP. I'm going to send the actual c code - called 1tm-036.cpp. I'm also going to send an exe which you can run to see the results from the cpp program. Note, I renamed the exe to exexxx. I'm also sending a test doc that presents a sampling of codes to test and the results. Here's how to run the dos program the runs the test algorithm. To run the 'dos' program, 1) copy the exe program ([login to view URL]) into a directory. 2) open up a command prompt and navigate to the directory with the [login to view URL] program 3) type into the command prompt [login to view URL] xxxx where xxxx = a code. **Do not enter the A**. For example [login to view URL] 3833 returns a set of values with for example a value of 4056 for 150 treatments. A separate screen will appear with a set of results. These results are different than what the website is presenting. This is a quote from the engineer who wrote the c code: The algorithm is fully expressed in the C code, which is less than a page long. The heart is the random number generator. Each new 16-bit random number is generated by creating a new LSB from the XNOR of the current bits 15, 4, and 3, and shifting the new bit into the LSB as the previous number is shifted left, discarding bit 15. The starting seed is the code given by the unit (4 digits). The random number generator is cycled 5 times on this seed (the 5 is a parameter that can be changed if there comes a need to change the "codebook"). Each new random number is then used as the code for each consecutive entry in the TreatmentLookup table.
项目 ID: 2762274

关于此项目

5提案
远程项目
活跃12 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作
颁发给:
用户头像
See private message.
$30.60 USD 在2天之内
4.8 (37条评论)
4.6
4.6
5威客以平均价$41 USD来参与此工作竞价
用户头像
See private message.
$40.80 USD 在2天之内
5.0 (6条评论)
3.8
3.8
用户头像
See private message.
$30.60 USD 在2天之内
5.0 (6条评论)
3.3
3.3
用户头像
See private message.
$20.40 USD 在2天之内
0.0 (0条评论)
0.0
0.0
用户头像
See private message.
$80.75 USD 在2天之内
0.0 (0条评论)
0.0
0.0

关于客户

UNITED STATES的国旗
United States
4.9
46
会员自4月 19, 2008起

客户认证

谢谢!我们已通过电子邮件向您发送了索取免费积分的链接。
发送电子邮件时出现问题。请再试一次。
已注册用户 发布工作总数
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
加载预览
授予地理位置权限。
您的登录会话已过期而且您已经登出,请再次登录。