Trouble getting my program to display the tournament winner with the winner's average score. My instructor told me I was calculating the average AFTER I compare it to the highest so far. I tried moving around the calculation for average score/avgScore and the if statement determining the highest average and the tournament winner. Can someone tell me where to place my statements?
That if statement will always be false, you're comparing something to itself. Maybe you meant to compare if (avgScore > highestAvg)? I would suggest breaking the program up into specific functions, it makes it much easier for someone else to see what's going on.
Ok thanks, I got it to show something other then 0. However, now its simply displaying the last score as the highest avg and the winner as -1. (The winner should be a number like 2107 or 1193 - the playerid and the highest average should be 223.60)