Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Can you give me this program working in C++ please 95% oo H20 LTE 9:01 PM ehacc hacc.edu HACC-Harrisburg Area Community Fahringer College CPS 161

Can you give me this program working in C++ please image text in transcribed
image text in transcribed
image text in transcribed
95% oo H20 LTE 9:01 PM ehacc hacc.edu HACC-Harrisburg Area Community Fahringer College CPS 161 Computer Science Program #7 20 points Program Due: Monday, March 21st Word Series Task: Write a program that displays the contents of the Teams txt file on the screen and 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 19o3 to 2012. Input: The name of one of the teams displayed from the Teams txt file. Processing: Read the contents of the World Series Winners tykt file into a vector. When the user enters the name of a team, the program should step through the vector counting the number of times the selected team appears. Output: The number of times the team entered as input has won the world series and the year(s) that they won. Teams txt-This file contains a list of several major league baseball teams in alphabetical order. Each team listed in the file has won the World Series at least once. World SeriesWinners.txt This file contains a chronological list of the World Series' winning teams from 19o3 to 2012. (The first line in the file is the name of the team that won in 19o3, and the last line is the name of the team that won in 2012. Note that the World Series was not played in 19o4 and 1994)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Object Oriented Databases Prentice Hall International Series In Computer Science

Authors: John G. Hughes

1st Edition

0136298745, 978-0136298748

More Books

Students also viewed these Databases questions