Menu

Java Programming Language Attached Worldserieswinnerstxt File Contains Name Winner World S Q43901069

JAVA PROGRAMMING LANGUAGE!!!!!!

The attached WorldSeriesWinners.txt file contains the name ofthe winner of the World Series (duh) and the year in which theywon.1904 and 1994 did not have World Series played, so “No Winner”is displayed for those years. Your job is to write a python programthat lets the user enter the name of a team (or “No Winner”) andthen display the number of times the team won and a list of theyears in which they won

Write a program that lets the user enter the name of a team, andthen displays the number of times that the team has won the worldseries in the time period from 1903 through 2009.

TIP: Read the contents of the worldserieswinner.txt file into anarray, or an Arraylist. When the users enters the name of a team,the program should step through the array or

ArrayList, counting the numbers of times the selected teamappears.

Boston Americans 1903No Winner1904tipNew York Giants 1905Chicago White Sox 1906Chicago Cubs 1907Chicago Cubs 1908Pittsburgh Pirates 1909Philadelphia Athletics 1910Philadelphia Athletics 1911Boston Red Sox 1912Philadelphia Athletics 1913Boston Braves 1914Boston Red Sox 1915Boston Red Sox 1916Chicago White Sox 1917Boston Red Sox 1918Cincinnati Reds 1919Cleveland Indians 1920New York Giants 1921New York Giants 1922New York Yankees 1923Washington Senators 1924Pittsburgh Pirates 1925St. Louis Cardinals 1926New York Yankees 1927New York Yankees 1928Philadelphia Athletics 1929Philadelphia Athletics 1930St. Louis Cardinals 1931New York Yankees 1932New York Giants 1933St. Louis Cardinals 1934Detroit Tigers 1935New York Yankees 1936New York Yankees 1937New York Yankees 1938New York Yankees 1939Cincinnati Reds 1940New York Yankees 1941St. Louis Cardinals 1942New York Yankees 1943St. Louis Cardinals 1944Detroit Tigers 1945St. Louis Cardinals 1946New York Yankees 1947Cleveland Indians 1948New York Yankees 1949New York Yankees 1950New York Yankees 1951New York Yankees 1952New York Yankees 1953New York Giants 1954Brooklyn Dodgers 1955New York Yankees 1956Milwaukee Braves 1957New York Yankees 1958Los Angeles Dodgers 1959Pittsburgh Pirates 1960New York Yankees 1961New York Yankees 1962Los Angeles Dodgers 1963St. Louis Cardinals 1964Los Angeles Dodgers 1965Baltimore Orioles 1966St. Louis Cardinals 1967Detroit Tigers 1968New York Mets 1969Baltimore Orioles 1970Pittsburgh Pirates 1971Oakland Athletics 1972Oakland Athletics 1973Oakland Athletics 1974Cincinnati Reds 1975Cincinnati Reds 1976New York Yankees 1977New York Yankees 1978Pittsburgh Pirates 1979Philadelphia Phillies 1980Los Angeles Dodgers 1981St. Louis Cardinals 1982Baltimore Orioles 1983Detroit Tigers 1984Kansas City Royals 1985New York Mets 1986Minnesota Twins 1987Los Angeles Dodgers 1988Oakland Athletics 1989Cincinnati Reds 1990Minnesota Twins 1991Toronto Blue Jays 1992Toronto Blue Jays 1993No Winner1994Atlanta Braves 1995New York Yankees 1996Florida Marlins 1997New York Yankees 1998New York Yankees 1999New York Yankees 2000Arizona Diamondbacks 2001Anaheim Angels 2002Florida Marlins 2003Boston Red Sox 2004Chicago White Sox 2005St. Louis Cardinals 2006Boston Red Sox 2007Philadelphia Phillies 2008New York Yankees 2009San Francisco Giants 2010St. Louis Cardinals 2011San Francisco Giants 2012Boston Red Sox 2013San Francisco Giants2014Kansas City Royals2015Chicago Cubs2016

Expert Answer


Answer to JAVA PROGRAMMING LANGUAGE!!!!!! The attached WorldSeriesWinners.txt file contains the name of the winner of the World Se…

OR