Hello, im writtign a program that will process basketball data. The ending file will look like this:
CONFERENCE OVERALL
Rank Team W-L % WINS MARGIN W-L % WINS MARGIN
1 WILM 3-1 0.750 +7.25 7-2 0.778 +10.00
1 OTT 3-1 0.750 +14.00 5-4 0.556 +7.56
1 ONU 3-1 0.750 +15.25 7-2 0.778 +17.78
1 CAP 3-1 0.750 +11.75 7-2 0.778 +13.67
1 BW 3-1 0.750 +10.50 8-1 0.889 +13.56
6 MUC 2-2 0.500 -6.25 4-4 0.500 -0.50
7 MUSK 1-2 0.333 -12.00 5-3 0.625 +2.63
8 HEID 1-3 0.250 -4.00 3-4 0.429 +1.57
9 MAR 0-4 0.000 -29.75 2-7 0.222 -10.89
9 JCU 0-3 0.000 -13.00 2-5 0.286 -3.00
I need a for loop that wil compare the % wins and if the are the same to store the same rank in the array else store the corresponding rank.



LinkBack URL
About LinkBacks


