Posted on 2011-10-01
I am trying to create a scoring system where the user will input names and scores of all players. The program will calculate the average score and display all the players who scored below average.
Enter Player Name (Q to quit): Bob
Enter score for Bob: 3245
Enter Player Name (Q to quit): Sue
Enter score for Sue: 1098
Enter Player Name (Q to quit): Q
Average Score: 3944.75
Players who scored below average
My variables are:
InputData( ): Requests the user to input the player names and scores from the user and stores them into the two arrays for an unknown number of players <= 100.
DisplayPlayerData(): Displays each player's name and score.
CalculateAverageScore( ): Calculates the average score and returns it by value.
DisplayBelowAverage( ): Displays the names and scores of players who scored below average.
Any ideas how to tackle this? New to C#, trying to figure out the code
Thank you very much in advance!