Question: Computer language is C++. Please read instructions in all pictures, as it has to be done a certain way. Thank you! This week's program is

Computer language is C++. Please read instructions in all pictures, as it has to be done a certain way. Thank you!
Computer language is C++. Please read instructions in all pictures, as it
has to be done a certain way. Thank you! This week's program
is a modification of Chapter 7 Programming Challenge 16: World Series Champion(Page
459) In addition to the specifications outlined in the book, you also
need to include the following: - Include a function to read data
from the file Teams.txt (file is attached) and store it in an

This week's program is a modification of Chapter 7 Programming Challenge 16: World Series Champion(Page 459) In addition to the specifications outlined in the book, you also need to include the following: - Include a function to read data from the file Teams.txt (file is attached) and store it in an array - Include a function that will be passed a team name. You are to read the data from the second file(World Series Winners.txt) and the function will return to main() the number of times the team has won the World Series in the time period 1903 to 2012. The statistics are to be displayed in main() - Include a function that will be passed the array with team names. For each team in the array, find out how many times each team has won the World Series. Store the count in another array Once the counts are stored, sort the contents of the counts array in the ascending order and then store the names of the respective teams in another array. Print on screen a sorted list of teams with wins For Programming Challenge 16. you will need to send me the cpp file only. While saving your C++ application, name the application file and cpp file using the format Chapter 16 array. 16. World Series Champions If you have downloaded this book's source code, you will find the following files in this chapter's folder: Teams.txtThis file contains a list of several Major League baseball teams in alpha- betical order. Each team listed in the file has won the World Series at least once. World Series Winners.txt-This file contains a chronological list of the World Series' winning teams from 1903 to 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 the World Series was not played in 1904 or 1994.) Write a program that displays the contents of the Teams.txt file on the screen and prompts the user to enter the name of one of the teams. The program should then dis- play the number of times that team has won the World Series in the time period from 1903 to 2012 TIP: Read the contents of the World Series Winners.txt file into an array or vector. When the user enters the name of a team, the program should step through the array or vector counting the number of times the selected team appears. Teams - Notepad File Edit Format View Help Anaheim Angels Arizona Diamondbacks Atlanta Braves Baltimore Orioles Boston Americans Boston Braves Boston Red Sox Brooklyn Dodgers Chicago Cubs Chicago White Sox Cincinnati Reds Cleveland Indians Detroit Tigers Florida Marlins Kansas City Royals Los Angeles Dodgers Milwaukee Braves Minnesota Twins New York Giants New York Mets New York Yankees Oakland Athletics Philadelphia Athletics Philadelphia Phillies Pittsburgh Pirates San Francisco Giants St. Louis Cardinals Toronto Blue Jays Washington Senators World Series Winners - Notepad File Edit Format View Help Boston Americans New York Giants Chicago White Sox Chicago Cubs Chicago Cubs Pittsburgh Pirates Philadelphia Athletics Philadelphia Athletics Boston Red Sox Philadelphia Athletics Boston Braves Boston Red Sox Boston Red Sox Chicago White Sox Boston Red Sox cincinnati Reds cleveland Indians New York Giants New York Giants New York Yankees Washington Senators Pittsburgh Pirates St. Louis Cardinals New York Yankees New York Yankees Philadelphia Athletics Philadelphia Athletics St. Louis Cardinals New York Yankees New York Giants St. Louis Cardinals Detroit Tigers New York Yankees New York Yankees New York Yankees New York Yankees Cincinnati Reds New York Yankees St. Louis Cardinals New York Yankees St. Louis Cardinals Detroit Tigers World Series Winners - Notepad File Edit Format View Help St. Louis Cardinals New York Yankees Cleveland Indians New York Yankees New York Yankees New York Yankees New York Yankees New York Yankees New York Giants Brooklyn Dodgers New York Yankees Milwaukee Braves New York Yankees Los Angeles Dodgers Pittsburgh Pirates New York Yankees New York Yankees Los Angeles Dodgers St. Louis Cardinals Los Angeles Dodgers Baltimore Orioles St. Louis Cardinals Detroit Tigers New York Mets Baltimore Orioles Pittsburgh Pirates Oakland Athletics Oakland Athletics Oakland Athletics Cincinnati Reds Cincinnati Reds New York Yankees New York Yankees Pittsburgh Pirates Philadelphia Phillies Los Angeles Dodgers St. Louis Cardinals Baltimore Orioles Detroit Tigers Kansas City Royals New York Mets Minnesota Twins Los Angeles Dodgers Oakland Athletics Cincinnati Reds Minnesota Twins Toronto Blue Jays Toronto Blue Jays Atlanta Braves New York Yankees Florida Marlins New York Yankees New York Yankees New York Yankees Arizona Diamondbacks Anaheim Angels Florida Marlins Boston Red Sox Chicago White Sox St. Louis Cardinals Boston Red Sox Philadelphia Phillies New York Yankees San Francisco Giants St. Louis Cardinals San Francisco Giants

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!