Question: C# Arrays pne and Look at the code below Notice that the program has one class called Tournament. . It defines an integer array called
C# Arrays


pne and Look at the code below Notice that the program has one class called Tournament. . It defines an integer array called scores to hold all the scores in the tournament .The constructor for the class then actually creates the array of the required size. class Tournament int[ ] scores; const int MAX = 6; // define scores as an integer array // set a constant size public static void Main() //program starts executing here Tournament myTournament new Tournament(); //create a new objedt myTournament.getScores0; // call its getScores method public Tournament() /I the class constructor scores = new int[MAX]; // create a new array of size MAX public void getScores(0) Console.WriteLine("Inputting the Tournament Scores"); for (int i 0; i Player 2 scoredetc 2. Change the size of the tournament to 12. Check that it still works OK 3. Put source code and sample outputs in your logbook
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
