Question: I need help on this program. I having trouble comparing the different files. This is for C++ -Display the contents of teams.txt -prompts the user

I need help on this program. I having trouble comparing the different files. This is for C++ -Display the contents of teams.txt -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 2019, the year(s) when the team won, and the name(s) of the teams defeated. -prompts the user to enter a year and display the name of the team who won the world series on that year. Validate the input is between 1903 - 2019 inclusive. Display a proper message if the user enters 1904 or 1994, indicating that the world series was not played that year. Coding Requirements -Use only vectors for loading data from files -You need to use "getline" when reading from files into vectors of strings. The loop condition may look like this: while (getline(inFile, temp(). Where temp is a string variable that will be pushed into a vector. -Properly format your output -Design a good user interface and display the prompts in anyway you want -Make sure that you use more than one function in your code. - the text files are winners.txt, losers.txt, teams.txt, years.txt.

If we can keep this answer to this question as simple as possible no structs.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!