Assignment 5 - Football, structs, and the string class

due Monday, 10/30

The purpose of this assignment is to give you practice using structs and the string class.


Program Steps

Read a file containing team names, their conferences and divisions.  This data will be stored in an array of structs.
Read a file containing scores.  Each record in the file must be parsed to determine the winning and losing team.  The number of wins, losses and percentage must be calculated using the data in the scores file.
The array of structs must be sorted by conference, division, and percentage to produce output equivalent to that shown below.

Program Requirements

struct NFL_Team
{
    string name;
    string conference;
    string division;
    unsigned short wins;
    unsigned short losses;   
    unsigned short ties;

    float pct;
};

Program Output

Your output should look quite similar to the following.  Note: the actual statistics will be different when you use the current scores file.

Games through 10/24/16


National  Football Conference

West  Division          W     L     T     Pct
Seattle Seahawks        4     1     1   0.750
Arizona Cardinals       3     3     1   0.500
Los Angeles Rams        3     4     0   0.429
San Francisco 49ers     1     6     0   0.143

South Division          W     L     T     Pct
Atlanta Falcons         4     3     0   0.571
Tampa Bay Buccaneers    3     3     0   0.500
New Orleans Saints      2     4     0   0.333
Carolina Panthers       1     5     0   0.167

North Division          W     L     T     Pct
Minnesota Vikings       5     1     0   0.833
Green Bay Packers       4     2     0   0.667
Detroit Lions           4     3     0   0.571
Chicago Bears           1     6     0   0.143

East  Division          W     L     T     Pct
Dallas Cowboys          5     1     0   0.833
Philadelphia Eagles     4     2     0   0.667
New York Giants         4     3     0   0.571
Washington Redskins     4     3     0   0.571

American  Football Conference

West  Division          W     L     T     Pct
Oakland Raiders         5     2     0   0.714
Denver Broncos          5     2     0   0.714
Kansas City Chiefs      4     2     0   0.667
San Diego Chargers      3     4     0   0.429

South Division          W     L     T     Pct
Houston Texans          4     3     0   0.571
Tennessee Titans        3     4     0   0.429
Indianapolis Colts      3     4     0   0.429
Jacksonville Jaguars    2     4     0   0.333

North Division          W     L     T     Pct
Pittsburgh Steelers     4     3     0   0.571
Cincinnati Bengals      3     4     0   0.429
Baltimore Ravens        3     4     0   0.429
Cleveland Browns        0     7     0   0.000

East  Division          W     L     T     Pct
New England Patriots    6     1     0   0.857
Buffalo Bills           4     3     0   0.571
Miami Dolphins          3     4     0   0.429
New York Jets           2     5     0   0.286


Program Notes