kees Giants Cardinals Tigers Yankees Yankees Yankees Yankees Reds Yankees Cardinals Yankees Cardinals Tigers Cardinals Yankees Indians Yankees Yankees Yankees Yankees Yankees Giants Dodgers Yankees Braves Yankees Dodgers Pirates Yankees Yankees Dodgers Cardinals Dodgers Orioles Cardinals Tigers Mets Orioles Pirates Athletics Athletics Athletics Reds Reds Yankees Yankees Pirates Phillies Dodgers Cardinals Orioles Tigers Royals Mets Twins Dodgers Athletics Reds Twins Blue_Jays Blue_Jays Strike_cancelled_series Braves Yankees Marlins Yankees Yankees Yankees Diamondbacks Angels Marlins Red_Sox White_Sox Cardinals Red_Sox Phillies Yankees Giants Cardinals Giants Red_Sox Giants Royals Cubs Astros
kees Giants Cardinals Tigers Yankees Yankees Yankees Yankees Reds Yankees Cardinals Yankees Cardinals Tigers Cardinals Yankees Indians Yankees Yankees Yankees Yankees Yankees Giants Dodgers Yankees Braves Yankees Dodgers Pirates Yankees Yankees Dodgers Cardinals Dodgers Orioles Cardinals Tigers Mets Orioles Pirates Athletics Athletics Athletics Reds Reds Yankees Yankees Pirates Phillies Dodgers Cardinals Orioles Tigers Royals Mets Twins Dodgers Athletics Reds Twins Blue_Jays Blue_Jays Strike_cancelled_series Braves Yankees Marlins Yankees Yankees Yankees Diamondbacks Angels Marlins Red_Sox White_Sox Cardinals Red_Sox Phillies Yankees Giants Cardinals Giants Red_Sox Giants Royals Cubs Astros
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
From input file WorldSeriesChampions.txt
c++
Americans
No_Series
Giants
White_Sox
Cubs
Cubs
Pirates
Athletics
Athletics
Red_Sox
Athletics
Braves
Red_Sox
Red_Sox
White_Sox
Red_Sox
Reds
Indians
Giants
Giants
Yankees
Senators
Pirates
Cardinals
Yankees
Yankees
Athletics
Athletics
Cardinals
Yankees
Giants
Cardinals
Tigers
Yankees
Yankees
Yankees
Yankees
Reds
Yankees
Cardinals
Yankees
Cardinals
Tigers
Cardinals
Yankees
Indians
Yankees
Yankees
Yankees
Yankees
Yankees
Giants
Dodgers
Yankees
Braves
Yankees
Dodgers
Pirates
Yankees
Yankees
Dodgers
Cardinals
Dodgers
Orioles
Cardinals
Tigers
Mets
Orioles
Pirates
Athletics
Athletics
Athletics
Reds
Reds
Yankees
Yankees
Pirates
Phillies
Dodgers
Cardinals
Orioles
Tigers
Royals
Mets
Twins
Dodgers
Athletics
Reds
Twins
Blue_Jays
Blue_Jays
Strike_cancelled_series
Braves
Yankees
Marlins
Yankees
Yankees
Yankees
Diamondbacks
Angels
Marlins
Red_Sox
White_Sox
Cardinals
Red_Sox
Phillies
Yankees
Giants
Cardinals
Giants
Red_Sox
Giants
Royals
Cubs
Astros
Red_Sox
Nationals
Dodgers
No_Series
Giants
White_Sox
Cubs
Cubs
Pirates
Athletics
Athletics
Red_Sox
Athletics
Braves
Red_Sox
Red_Sox
White_Sox
Red_Sox
Reds
Indians
Giants
Giants
Yankees
Senators
Pirates
Cardinals
Yankees
Yankees
Athletics
Athletics
Cardinals
Yankees
Giants
Cardinals
Tigers
Yankees
Yankees
Yankees
Yankees
Reds
Yankees
Cardinals
Yankees
Cardinals
Tigers
Cardinals
Yankees
Indians
Yankees
Yankees
Yankees
Yankees
Yankees
Giants
Dodgers
Yankees
Braves
Yankees
Dodgers
Pirates
Yankees
Yankees
Dodgers
Cardinals
Dodgers
Orioles
Cardinals
Tigers
Mets
Orioles
Pirates
Athletics
Athletics
Athletics
Reds
Reds
Yankees
Yankees
Pirates
Phillies
Dodgers
Cardinals
Orioles
Tigers
Royals
Mets
Twins
Dodgers
Athletics
Reds
Twins
Blue_Jays
Blue_Jays
Strike_cancelled_series
Braves
Yankees
Marlins
Yankees
Yankees
Yankees
Diamondbacks
Angels
Marlins
Red_Sox
White_Sox
Cardinals
Red_Sox
Phillies
Yankees
Giants
Cardinals
Giants
Red_Sox
Giants
Royals
Cubs
Astros
Red_Sox
Nationals
Dodgers
CardinalsGiantsRed_SoxGiantsRoyalsCubsAstrosRed_SoxNationalsDodgers

Transcribed Image Text:Enter team: Phillies
Phillies won the World Series in 1980
Phillies won the World Series in 2008
Run another search? (y/n): n
Here is a list of each World Series winner
and the number of times they won the series
Americans won 1 World Championships
No_Series won 1 World Championships
Giants won 8 World Championships
White_Sox won 3 World Championships
Cubs won 3 World Championships
Pirates won 5 World Championships
Athletics won 9 World Championships
Red_Sox won 8 World Championships
Braves won 3 World Championships
Reds won 5 World Championships
Indians won 2 World Championships
Yankees won 27 World Championships
Senators won 1 World Championships
Cardinals won 11 World Championships
Tigers won 4 World Championships
Dodgers won 7 World Championships
Orioles won 3 World Championships
Mets won 2 World Championships
Phillies won 2 World Championships
Royals won 2 World Championships
Twins won 2 World Championships
Blue_Jays won 2 World Championships
Strike_cancelled_series won 1 World Championships
Marlins won 2 World Championships
Diamondbacks won 1 World Championships
Angels won 1 World Championships
Astros won 1 World Championships
Nationals won 1 World Championships
C: \Users\wtmin\source\repos\ConsoleApplication2\Debug
To automatically close the console when debugging sto
Press any key to close this window
![When finished, attach your source code file AND paste the text of this
file in the text box.
Code two functions to fill an array with the names of every World Series
winning team from 1903 to 2020. The input file is attached, along with
a main function and screen print. Please note that team names that
include two words, such as Red Sox, have an underscore in place of the
space. This enables you to use the extraction operator with a single
string variable.
The following resources are included:
Here is main.
#include <iostream>
#include <fstream>
#include<string>
using namespace std;
// Add function declarations and documentation here
void fill(string teams[], int size);
void findWinner(string teams[], int size);
int main()
{
const int SIZE = 118;
int lastlndex;
string team[SIZE];
fill(team, SIZE);
findWinner(team, SIZE);
return 0;
}
// Add function definitions here](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fbd71aed0-d3bd-4d71-9907-22a56263f2db%2F639fefa4-5f90-4cec-8b56-6aa47ba31680%2Fk4cjta9_processed.png&w=3840&q=75)
Transcribed Image Text:When finished, attach your source code file AND paste the text of this
file in the text box.
Code two functions to fill an array with the names of every World Series
winning team from 1903 to 2020. The input file is attached, along with
a main function and screen print. Please note that team names that
include two words, such as Red Sox, have an underscore in place of the
space. This enables you to use the extraction operator with a single
string variable.
The following resources are included:
Here is main.
#include <iostream>
#include <fstream>
#include<string>
using namespace std;
// Add function declarations and documentation here
void fill(string teams[], int size);
void findWinner(string teams[], int size);
int main()
{
const int SIZE = 118;
int lastlndex;
string team[SIZE];
fill(team, SIZE);
findWinner(team, SIZE);
return 0;
}
// Add function definitions here
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 2 steps

Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you

Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON

Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education