Question: C++ Code Read in the following two files- one file is a list of baseball teams and the other list is what league each baseball
C++ Code
Read in the following two files- one file is a list of baseball teams and the other list is what league each baseball team is located in so either the American or National League. The two file are in order so the first line of the baseball team file corresponds to the first line of the League file.
Write a program that creates one file with the combination of the information from the two files. So each line in the file should have a Team Name followed on the same line with a couple of spaces in front of it- what League that team is in. This final file should be named outputbb.txt.
The program should have clean code that is easy to read with good comments including (name/date/e-mail). Your program should not use classes/objects, use standard C++ code and should at most have three functions.
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 Kansas City Royals Los Angeles Dodgers Milwaukee Braves Minnesota Twins New York Giants New York Mets New York Yankees No Winner Oakland Athletics Philadelphia Athletics Philadelphia Phillies Pittsburgh Pirates San Francisco Giants St. Louis Cardinals Toronto Blue Jays Washington Senators
Leagues.txt
American League National League National League American League American League National League American League National League National League American League National League American League American League National League American League National League National League American League National League National League American League No Winner American League American League National League National League National League National League American League American League
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
