Question: Assignment Description: A C# app to do tournament pairings is to be created. The team names along with their wins should be stored in an
Assignment Description: A C# app to do tournament pairings is to be created. The team names along with their wins should be stored in an array of objects. The teams will be entered randomly and will need to be sorted into their order of wins; that is most wins to least wins. To create the pairings, the first team in the array (the team with the best record) is matched with the last team in the array (the team with the worst record) to form the first game of the tournament. The process is repeated, matching the team with the next best record with the team with the next worst record to form the second game. The process continues until all teams have been paired. The number of teams to be paired will always be an even power of two. For example: the input would be 4, 8, 16, 32 or 64 teams for testing. On the first time the app is executed, there would be 64 teams. On the next pass, there would be the 32 teams which were winners of the first 64 games. On the next time, the app is executed; there would be 16 winners, and so on until there are only two teams left. You should create one app that can be used for 64, 32, 16, 8, and 4 teams. The app will need to be written to handle any number of teams entered.
Input: The input will consist of the team name and its number of wins. You can design this input any way you see fit.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
