Menu

[Solved]L52 Create New File Dev C Save Write Program Displays Contents Teams File Prompts User Ent Q37122921

L5.2

Create a new file (in Dev C++) and save it

Write a program that displays the contents of the Teams file,and prompts the user to enter the name of one of the teams. Theprogram should then display the number of times that team has wonthe World Series ( between 1903 – 2012).

  • Header comments must be present
  • Prototypes must be present if functions are used
  • Hello and goodbye messages must be shown
  • Vector(s) must be used for implementation
  • Use comments and good style practices

HINT: Read the contents of theWorldSeriesWinners file into a vector. When the user enters thename of the team, the program should step through the vectorcounting the number of times the selected team appears.

Attached Files:

File Teams.txt(535 B) :

Anaheim AngelsArizona DiamondbacksAtlanta BravesBaltimore OriolesBoston AmericansBoston BravesBoston Red SoxBrooklyn DodgersChicago CubsChicago White SoxCincinnati RedsCleveland IndiansDetroit TigersFlorida MarlinsKansas City RoyalsLos Angeles DodgersMilwaukee BravesMinnesota TwinsNew York GiantsNew York MetsNew York YankeesOakland AthleticsPhiladelphia AthleticsPhiladelphia PhilliesPittsburgh PiratesSan Francisco GiantsSt. Louis CardinalsToronto Blue JaysWashington Senators

FileWorldSeriesWinners.txt (1.969 KB):

Boston AmericansNew York GiantsChicago White SoxChicago CubsChicago CubsPittsburgh PiratesPhiladelphia AthleticsPhiladelphia AthleticsBoston Red SoxPhiladelphia AthleticsBoston BravesBoston Red SoxBoston Red SoxChicago White SoxBoston Red SoxCincinnati RedsCleveland IndiansNew York GiantsNew York GiantsNew York YankeesWashington SenatorsPittsburgh PiratesSt. Louis CardinalsNew York YankeesNew York YankeesPhiladelphia AthleticsPhiladelphia AthleticsSt. Louis CardinalsNew York YankeesNew York GiantsSt. Louis CardinalsDetroit TigersNew York YankeesNew York YankeesNew York YankeesNew York YankeesCincinnati RedsNew York YankeesSt. Louis CardinalsNew York YankeesSt. Louis CardinalsDetroit TigersSt. Louis CardinalsNew York YankeesCleveland IndiansNew York YankeesNew York YankeesNew York YankeesNew York YankeesNew York YankeesNew York GiantsBrooklyn DodgersNew York YankeesMilwaukee BravesNew York YankeesLos Angeles DodgersPittsburgh PiratesNew York YankeesNew York YankeesLos Angeles DodgersSt. Louis CardinalsLos Angeles DodgersBaltimore OriolesSt. Louis CardinalsDetroit TigersNew York MetsBaltimore OriolesPittsburgh PiratesOakland AthleticsOakland AthleticsOakland AthleticsCincinnati RedsCincinnati RedsNew York YankeesNew York YankeesPittsburgh PiratesPhiladelphia PhilliesLos Angeles DodgersSt. Louis CardinalsBaltimore OriolesDetroit TigersKansas City RoyalsNew York MetsMinnesota TwinsLos Angeles DodgersOakland AthleticsCincinnati RedsMinnesota TwinsToronto Blue JaysToronto Blue JaysAtlanta BravesNew York YankeesFlorida MarlinsNew York YankeesNew York YankeesNew York YankeesArizona DiamondbacksAnaheim AngelsFlorida MarlinsBoston Red SoxChicago White SoxSt. Louis CardinalsBoston Red SoxPhiladelphia PhilliesNew York YankeesSan Francisco GiantsSt. Louis CardinalsSan Francisco Giants

Expert Answer


Answer to L5.2 Create a new file (in Dev C++) and save it Write a program that displays the contents of the Teams file, and prompt… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *