Question: The program needs to be in C++ not C. Consider we have our own Programming League of four teams, where each Team 3ompetes among each
The program needs to be in C++ not C.
Consider we have our own "Programming League" of four teams, where each Team 3ompetes among each other. At the end of the league, each team will have had a "Programming Match" with its opponent. In a match, each team is provided a score between 1 and 100. For example here are sample scores: Team 1 100-96 Team 2 Team 3 94 - 92 Team 4 Team 1 94-98 Team 3 Team 2 99-97 Team 4 Team 1 89- 91 Team 4 Team 2 99-98 Team 3 The difference of the scores in a match will be used to determine the champions. In the table below using the above sample scores, each clement of the table shows how many points a Team 1 cross the rows scored more than the 1'eam 1 cross the columns in their respective match. For example, since Team 1 scored 4 points more than Team 2 in their match, Row 1 Column 2 is 4. For the same reason. Row 2 Column 1 is -4. Since Team 3annot play with itself, that corresponding value is zero. To find the winner, we will sum across the columns. In this example, since the Row 3 will have the highest sum across the columns, Team 3 are the champions. Write a program to implement this requirement. In your program, declare a two-dimensional array. You will need to read the scores of each match from the user, calculate the difference and store in your two dimensional array. Now, using the same logic as in the above example, your program needs to determine who won the championship. Display on the screen the elements of the two-dimensional array along with the team that won the championship
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
