JE said:
I think you need to provide a bit more information.
What determines which place a team gets (and if ties are possible, what
should happen then)?
How is your data laid out?
Are the prizes each a fixed percentage of the total prize fund (and if
so, what percentages are they)?
Or are they a fixed dollar amount (or a minimum/maximum amount)?
Or some combination?
Will the split amounts/percentages change?
Do you need to round to a particular increment (i.e., $210 rather than
$208.43)?
Ok maybe this will help-
Say we have a bowling league. We find we have XX# of teams this gives
us $XXXX.XX dollars for the prize fund .
The number of teams = the payout positions 1st place,2nd,3rd.......
The team that gets the most points comes in first place, the least
points comes in last place.
No ties, no payout based on number of points won.
Each place would get a set amount.
with 1st place getting the most and last place the least.
__________________________________
Heres a example.
Input prize fund amount= $3000.00
Input Number of Team/Positions= 5
Output=
Place #1 gets $1000.00 ( which is about 33% of $3000.00= prize fund)
Place #2 gets $800.00 ( which is 40% of $2000.00=$3000-$1000)
Place #3 gets $600.00 ( which is 50% of $1200.00=$2000-$800)
Place #4 gets $400.00 ( which is about 66.66% of $600=$1200-$600)
Place #5 gets $200.00 ( which is 100% of $200=$600-$400)
------------------
Total payout= $3000.00 which = the prize fund amount.
_____________________________________
I assume the amounts for each place would be a percentage of the prize
fund or I would have to set a upper & lower limit of some kind and then
it would fill in the rest.
Sorry I'm not that good at explaining things