C++ Programming You will use the contents of the text file below to complete the task. It is organized by row with the name of the team, year, wins, losses, and ties. Each item on a line is separated by one or more spaces. Write a C++ program using STRUCTURES and VECTORS that does the following: 1. Reads that data from file 2. Calculates the total wins and losses for each team 3. Displays a total win/loss percentage for each team. NOTE: You are NOT allowed to use pointers or heaps

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Must provide output screenshot, ediable code

 

C++ Programming

You will use the contents of the text file below to complete the task. It is organized by row with the name of the team, year, wins, losses, and ties. Each item on a line is separated by one or more spaces. Write a C++ program using STRUCTURES and VECTORS that does the following:

1. Reads that data from file

2. Calculates the total wins and losses for each team

3. Displays a total win/loss percentage for each team.

NOTE: You are NOT allowed to use pointers or heaps

 

School Year Won Loss Tie
Alabama 1980 10 2 0
Alabama 1981 9 2 1
Alabama 1982 8 4 0
Alabama 1983 8 4 0
Alabama 1984 5 6 0
Alabama 1985 9 2 1
Alabama 1986 10 3 0
Alabama 1987 7 5 0
Alabama 1988 9 3 0
Alabama 1989 10 2 0
Alabama 1990 7 5 0
Alabama 1991 11 1 0
Alabama 1992 13 0 0
Alabama 1993 12 0 0
Alabama 1994 12 1 0
Alabama 1995 3 0 0
Alabama 1996 10 3 0
Alabama 1997 11 0
Alabama 1998 4 7 0
Alabama 1999 7 5 0
Alabama 2000 10 3 0
Alabama 2001 3 8 0
Alabama 2002 7 5 0
Alabama 2003 10 3 0
Alabama 2004 6 6 0
Alabama 2005 10 1 0
Alabama 2006 6 7 0
Alabama 2007 2 6 0
Alabama 2008 12 2 0
Alabama 2009 14 0 0
Alabama 2010 10 3 0
Alabama 2011 12 1 0
Alabama 2012 13 1 0
Alabama 2013 11 2 0
Alabama 2014 12 2 0
Alabama 2015 14 1 0
Alabama 2016 14 1 0
auburn 1958 9 0 1
auburn 1959 7 3 0
auburn 1960 8 2 0
auburn 1961 6 4 0
auburn 1962 6 3 1
auburn 1963 9 2 0
auburn 1964 6 4 0
auburn 1965 5 5 1
auburn 1966 4 6 0
auburn 1967 6 4 0
auburn 1968 7 4 0
auburn 1969 8 3 0
auburn 1970 9 2 0
auburn 1971 9 2 0
auburn 1972 10 1 0
auburn 1973 6 6 0
auburn 1974 10 2 0
auburn 1975 4 6 1
auburn 1976 4 7 0
auburn 1977 6 5 0
auburn 1978 6 4 1
auburn 1979 8 3 0
auburn 1980 5 6 0
auburn 1981 5 6 0
auburn 1982 9 3 0
auburn 1983 11 1 0
auburn 1984 9 4 0
auburn 1985 8 4 0
auburn 1986 10 2 0
auburn 1987 9 1 2
auburn 1988 10 2 0
auburn 1989 10 2 0
auburn 1990 8 3 1
auburn 1991 5 6 0
auburn 1992 5 5 1
auburn 1993 11 0 0
auburn 1994 9 1 1
auburn 1995 8 4 0
auburn 1996 8 4 0
auburn 1997 10 3 0
auburn 1998 3 8 0
auburn 1999 5 6 0
auburn 2000 9 4 0
auburn 2001 7 5 0
auburn 2002 9 4 0
auburn 2003 8 5 0
auburn 2004 13 0 0
auburn 2005 9 3 0
auburn 2006 11 2 0
auburn 2007 9 4 0
auburn 2008 5 7 0
auburn 2009 8 5 0
auburn 2010 14 0 0
auburn 2011 8 5 0
auburn 2012 3 9 0
auburn 2013 12 2 0
auburn 2014 8 5 0
auburn 2015 7 6 0
auburn 2016 8 5 0

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 17 images

Blurred answer
Knowledge Booster
User Defined DataType
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education