Question: C++ programming Problem 10: Baseball Champions This challenge uses two files (attached to this assignment page). Open a file on your windows console and paste
C++ programming
Problem 10: Baseball Champions
This challenge uses two files (attached to this assignment page). Open a file on your windows console and paste them to the Linux terminal (Open Team.txt, select all and copy....open the linux terminal and open an empty file for teams.txt (vi teams.txt). Change to insert mode (press i) and right click (it should paste the content to this file). Save the file and you are ready to use that one file. Do the same thing to the WorldSeriesWinners.txt.
*Teams.txt - This file contains an alphabetical list of a number of Major League baseball teams that have won the World Series at least once.
*WorldseriesWinners.txt - This file contains a chronological list of World Series' winning teams from 1950, and the last line is the name of the team that won in 2014. (Note that the World Series was not played in 1994.)
Write a program that reads the contents of each of these files into an array or vector. It should then display the content of the Teams.txt file on the screen and prompt the user to enter the name of one of the teams. When the user enters a team name, the program should display the number of times that team has won the World Series in the time period of 1950 through 2014.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
