CIS 260 C++ Programming

Program Requirements: Team Standings

Create a program that reads a list of sports team data from a file, (hockey in this example) calculates the league standings, and prints the results to another file. There may be up to 10 teams given in the input file. 

Team data includes the team name, the number of wins, losses and ties. Standings are calculated based on "points." Each team receives 2 points for a win, 1 point for a tie, and 0 for a loss. The standings should be organized by points and the team with the most points should be listed first. 

Sample Input: (TEAMS.TXT)

BlackHawks 26 14 8
Blue_Jackets 12 25 6
Blues 23 12 6
Predators 16 20 8
Wings 32 8 3

Sample Output:  (STANDING.TXT)

LEAGUE STANDINGS

Team          Pts  W   L   T
--------      --- --- --- ---
Wings          67  32   8   3
BlackHawks     60  26  14   8
Blues          52  23  12   6
Predators      40  16  20   8
Blue_Jackets   30  12  25   6

Thank you for using Your Name Here "Stat-O-Matic!"

Ask the user for the name of the input and output files when the program is run.  If the input file doesn't exist, give the user a chance to enter a different name.

Use functional decomposition and modular programming techniques to divide the problem into appropriate functions.  NO GLOBAL variables are allowed.

 Following the guidelines discussed in class, construct a test set for the program.

Final Program Includes:

Problem Description
Algorithm
Functional Decomposition (showing structure and function headers)
Test Set Design
Source Code
Sample Output