CIS 260 Computer Programming I

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 30 teams given in the input file. 

Team data includes the team name, the number of wins, losses and overtime losses. Standings are calculated based on "points." Each team receives 2 points for a win, 1 point for an overtime loss, 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  OTL
--------      --- --- --- ---
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.

During the Design Phase:

Apply the principles of OOD (Object Oriented Design) as discussed in class. Designing appropriate classes will make this project much more manageable.

During Coding:

Much of the actual processing in this project is similar to the rainfall statistics program. These are close enough to use as an example, but NOT alike enough to just copy and paste.

During Testing:

Following the guidelines discussed in class, test sets will need to be developed.

An actual data set will be provided on the project due date. This data set must be run in class and the results included with the rest of the project.

Project Deliverables:

Final Program: (All components in Presentation Format )
Algorithm for main
Algorithm for any module (other than set or get methods)
Test Set Design
Source Code
Sample Output
Actual Output from instructor provided data set