Question: Visual C# Problem : Create a Visual C# application that displays the contents of the Teams.txt file in a ListBox control. When the user selects
Visual C# Problem: Create a Visual C# application that displays the contents of the Teams.txt file in a ListBox control. When the user selects a team in the ListBox, the application should display the number of times that team has won the World Series in the time period from 1903 to 2012. The two files used are Teams.txt , which contains a list of the names of teams that have won the Championship at least once, and WorldSeriesWinners.txt - this file contains a chronological list of the World Series winning teams from 1903 - 2012. The first line in the file is the name of the team that won in 1903 and the last line is the name of the team that won in 2012. Note that the World Series was not played in 1904 or 1994. Tip: Read the contents of the WorldSeriesWinners.txt file into a List or an array. When the user selects a team, an algorithm should step through the list or array counting the number of times the selected team appears. (for the purpose of this answer/code, the contents of the text files do not really matter, as long as the code works.
This should be in Visual C#, not Visual Basic. And the code should be making use of class, constructors, methods and (if possible) creating objects that is Random rand = new random
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
