(Write a C++ program) This homework is from our textbook page 459 # 16. The Dodgers recently won the World Series vs the Tampa Bay Rays.  Attached are two files: Teams.txt - This file contains a list of serveral Major League baseball teams in alphabetical order.  Each team is listed in the file has won the World Series at least once. WorldSeries Winners.txt - This file contains a chronological list of the World Series' winning teams from 1903-2020. (The first line of 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 2020.  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 display the number of times that team has won the World Series in the time period from 1903 to 2020. In the program, 2 arrays are needed:  TeamList array and Winners array.   TeamList array will contain the entries in Teams.txt. Winners array will contain the entries in WorldSeriesWinners.txt. Use a search algorithm to validate if the entry from the user is in the team list. Use a loop to count which years that team won the World Series, list the years in the output and the number of World Series wins. Add logic to loop for an additional search or exit the program. Teams.txt 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 Houston Astros 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 Nationals Washington Senators WorldSeriesWinners.txt 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 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 Boston Red Sox San Francisco Giants Kansas City Royals Chicago Cubs Houston Astros Boston Red Sox Washington Nationals Los Angeles Dodgers

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

(Write a C++ program)

This homework is from our textbook page 459 # 16. The Dodgers recently won the World Series vs the Tampa Bay Rays.  Attached are two files:

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

WorldSeries Winners.txt - This file contains a chronological list of the World Series' winning teams from 1903-2020. (The first line of 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 2020.  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 display the number of times that team has won the World Series in the time period from 1903 to 2020.

In the program, 2 arrays are needed:  TeamList array and Winners array.  

TeamList array will contain the entries in Teams.txt.

Winners array will contain the entries in WorldSeriesWinners.txt.

Use a search algorithm to validate if the entry from the user is in the team list.

Use a loop to count which years that team won the World Series, list the years in the output and the number of World Series wins.

Add logic to loop for an additional search or exit the program.

Teams.txt

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

Houston Astros

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 Nationals

Washington Senators

WorldSeriesWinners.txt

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

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

Boston Red Sox

San Francisco Giants

Kansas City Royals

Chicago Cubs

Houston Astros

Boston Red Sox

Washington Nationals

Los Angeles Dodgers

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY