IUP Computer Science
CO 310 Spring 1997

Project 3
(Due   13 Mar 1997)

The file MEET.DAT contains the basic results for a two-day orienteering meet. Each line (record) in the file contains a 15-character competitor name, a 6-character club name, and the starting and finishing times for two days of competition (one start and one finish for each day). Each time consists of an hour number, a minute number, and a second number (separated by colons).

The program to produce the final standings from the data using the file STANDING.CPP. This program relies on the definition of a time class. You are expected to put the time class (both the interface and implementation) in the file you-P3.H, where "you" should be your initials. Your job for project 3 is to create the time class basing the interface on the use of time objects in STANDING.CPP and then compile, link and run the program to get the final standings for the competitors. The expected output of STANDING is shown below.

Results of Class M21A for the 1996 U.S. Championships

Place Name              Club   Day 1    Day 2    Elapsed Time
   1  M. Platt          RMOC   1:17:02  1:14:54     2:31:56
   2  J. Scarborough    BAOC   1:24:05  1:13:50     2:37:55
   3  E. Bone           COC    1:22:44  1:23:39     2:46:23
   4  P. Djambazov      MNOC   1:25:54  1:22:25     2:48:19
   5  G. Balter         HVO    1:24:29  1:24:13     2:48:42
   6  P. Anderson       UNO    1:34:55  1:20:08     2:55:03
   7  M. Veres          SVO    1:23:52  1:33:24     2:57:16
   8  M. Scott          DVOA   1:28:11  1:29:34     2:57:45
   9  C. McGrath        DVOA   1:32:36  1:27:49     3:00:25
  10  M. Eglinski       OK     1:34:50  1:30:26     3:05:16
  10  M. Everett        OK     1:33:07  1:32:09     3:05:16
  12  T. Good           QOC    1:58:59  1:30:01     3:29:00
  13  J.J. Cote         RMOC   2:12:57  1:43:58     3:56:55
  14  D. Kostansek      NEOH   2:15:17  1:51:49     4:07:06
  15  M. Gardner        USMA   2:05:45  2:02:42     4:08:27

By examining the STANDING.CPP file, you should easily recognize what member functions your time class needs to have. Simply look at all the places where a time object is used and note what is done to it. If you cannot determine which functions you need, ask me about it. You should make ONLY ONE CHANGE in STANDING.CPP - change the third "#include" to refer to you-P3.H Both STANDING.CPP and MEET.DAT are in 310LIB: on the mainframe, on O:\JLW\310 in Johnson and on L:\JLW\310 in Tompkins.

Hand in a diskette with your you-P3.H file on it. Also, hand in a printout of this file.