Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Teams.txt this file contains a list of several Major League baseball teams in alphabetical order. Each team listed in the file has won the World

Teams.txt this file contains a list of several Major League baseball teams in alphabetical order. Each team listed in the file has won the World Series at least once.

WorldSeriesWinners.txt this file contains a chronological list of the World Series' winning teams from 1903 through 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.)

  • all .txt files are in this google drive folder https://drive.google.com/drive/folders/1mC3G0V8gJ_cp44od2_43HHDx7KLlmh5i?usp=sharing

For this assignment, Make an 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 through 2012.

Your program should meet the following objectives:

Read the contents of the WorldSeriesWinners.txt file into a list or an array.

When the user selects a team from the list, the algorithm should step through the list or array counting the number of times the selected team appears.

Display the number of times that team has won the World Series on the form. It should also display a message if the team has not won any World Series.

Make a working version of this program in C#.

  • Software is Visual Studio 2019 C# Windows Forms App ( A project Template Creating a.NET Windows Forms)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Introduction to Wireless and Mobile Systems

Authors: Dharma P. Agrawal, Qing An Zeng

4th edition

1305087135, 978-1305087132, 9781305259621, 1305259629, 9781305537910 , 978-130508713

More Books

Students also viewed these Programming questions