Home | How it works | Projects archive | Contact Us
Air Compressor Bot
 
The Career Path of Freelance Programming Jobs 

   Number Adding Function Php

Bidding Time:
21/04/2007 23:37 - 22/04/2007 23:37
Budget:
N/A
Status:
Closed


Job Type:
PHP
Description:



Banner

I am looking to have a function in php created that finds a combination of
numbers that add to give you a number that you input into the function.
There is a catch:
I will be provide an array of numbers that are the only ones you may use, and
you may not repeat the same number more than once, unless it appears in the
array more than once.
You may only add.
What I need returned: an array containing the index values from the initial
array showing which numbers you used to get the desired number.
You may use as many or few numbers as you'd like from the provided array. If
the numbers can't add to give you the desired number, find the results which
give you that closest to the desired number.
You may round to the 2nd decimal place to help as the array may or may not
contain decimals past the 2nd decimal place.

Additional Info (Added 4/21/2007 at 23:40
EST)...

Example:
function add (array $arrayofnumbers, $desireded value) {

return array $answer array
}

If there are more than one combination that add to give you the desired value,
return only one set.

Start your work-at-home career for $7.00. Get direct access to thousands of freelance and home-based jobs. Click here to find work now.

Related Projects:
Joomla/virtuemart Modification
Copy and paste work
Create Separate Img Thumbnails
Banner 468x60 for Traffic Exchange
Web Graphic Design

This project is the proprietary information of . Click here to remove this project from OUR database.
Operating System:
N/A
Database System:
N/A
<<< back

Recent Projects Archive:

Tuesday - Monday - Sunday - Saturday - Friday - Thursday - Wednesday

View all freelance web projects

 
Home | Projects archive | RSS | Resources | Links | Contact Us © 2004-2008 ProjectsList.biz /1.013