The one-dimensional (1D) array TeamName[] contains the names of teams in a sports league.
string[] TeamName = { "Real Madrid", "Barcelona", "Bayern Munich", "Juventus", "Paris Saint-Germain" };
The two-dimensional (2D) array TeamPoints[] contains the points awarded for each match.
int[,] TeamPoints = new int[,] { { 2, 1, 0, 3, 2 }, // Points for Team A in 5 matches { 1, 3, 1, 0, 2 }, // Points for Team B in 5 matches { 0, 1, 1, 1, 3 }, // Points for Team C in 5 matches { 2, 0, 3, 1, 1 }, // Points for Team D in 5 matches { 3, 2, 1, 0, 0 } // Points for Team E in 5 matches };
The position of each team’s data in the two arrays is the same. For example, the team stored at index 4 in TeamName[] and TeamPoints[] is the same. The variable LeagueSize contains the number of teams in the league. The variable MatchNo contains the number of matches played. All teams have played the same number of matches. The arrays and variables have already been set up and the data stored. Each match can be played at home or away.
Points are recorded for the match results of each team with the following values:
Here are the 5 tasks you should complete based on the above information.
Submit your work as .cs file and a pdf file that includes your whole code.