# Run every combination of the following array and display results.

(The data for the array is in the attached zip file) The array represents a set of 8 multiple choice questions. Each question has either 4 of 5 answers. Each answer for each question gives an array of 7 point values, each element in the array is Stat1, Stat2, Stat3, Stat4, Stat5, Stat6, and Stat7 I want it to go through all 8 questions doing every possible combination of answers 1,1,1,1,1,1,1,1 1,1,1,1,1,1,1,2 1,1,1,1,1,1,1,3 1,1,1,1,1,1,1,4 1,1,1,1,1,1,1,5 1,1,1,1,1,1,2,1 1,1,1,1,1,1,2,2 1,1,1,1,1,1,2,3 1,1,1,1,1,1,2,4 1,1,1,1,1,1,2,5 1,1,1,1,1,1,3,1 and so on.... Each answer combination gives a set of stats Example: Answer Combination: 1,2,1,2,2,3,1,4 will give you the following arrays // array(Stat1, Stat2, Stat3, Stat4, Stat5, Stat6, Stat7) 1 => array(2,1,13,13,1,5,2) 2 => array(12,4,7,8,2,10,7) 1 => array(4,13,8,13,7,5,6) 2 => array(9,7,12,6,4,25,3) 2 => array(9,13,4,5,6,10,13) 3 => array(3,12,2,7,8,25,1) 1 => array(12,10,7,4,13,5,2) 4 => array(12,3,1,6,8,10,8) Give me the total of each Stat, and then a percentage of all Stat1-7 Combined. Stat1 Total 63 Stat2 Total 63 Stat3 Total 54 Stat4 Total 62 Stat5 Total 49 Stat6 Total 95 Stat7 Total 42 Stats Total 428 Stat1 Percent of total Stats 0.147196262 Stat2 Percent of total Stats 0.147196262 Stat3 Percent total Stats 0.126168224 Stat4 Percent total Stats 0.144859813 Stat5 Percent total Stats 0.114485981 Stat6 Percent total Stats 0.221962617 Stat7 Percent total Stats 0.098130841 The final results should look like this: (seperated by tabs rather than the / im showing) (Since there will be thousands and thousands of combinations, dump it to a file if you think the browser would have issues displaying it) AnswerCombo / Stat1 / Stat2 / Stat3 / Stat4 / Stat5 / Stat6 / Stat7 / StatTotal / Stat1% / Stat2% / Stat3% / Stat4% / Stat5% / Stat6% / Stat7% / 12122314 / 63 / 63 / 54 / 62 / 49 / 95 / 42 / 428 / 0.147196262 / 0.147196262 / 0.126168224 / 0.144859813 / 0.114485981 / 0.221962617 / 0.098130841

## Deliverables

1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.

2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables):

a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment.

b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request.

3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).

## Platform

PHP

Habilidades: Engenharia, MySQL, PHP, Arquitetura de software, Teste de Software