ACOM1900: Coursework 1

Submission deadline: 9am, Mon 25th February 2008

Task

You have been asked to write a programme that displays the results of a relay race. You don't know how many teams will enter the race, but there will be three legs and the results will be supplied to you in a text file.

Format of results file

The results will be provided in a .csv (comma separated values) text file, that has the following columns of data:

Every team and runner has a unique name. The leg is either 1, 2 or 3. The time is the number of seconds for each individual's leg. An example results file is provided to help you test your software.

Functionality and marking

The assignment is worth 30% of the assessment for ACOM1900. Your programme should read the results file and print to the screen the total time and name of each team, in the position they came. The name of the results file (cw1-results.txt) should be hard coded into your programme. The time should be output in the form "hh:mm:ss" (hours:minutes:seconds).

A total of 30 marks are available, broken down as follows:

Submission

The source code for these exercises should be submitted by email (as an attachment) to acom1900@comp.leeds.ac.uk. It must be submitted from a .leeds.ac.uk email address, and include your name and student number in the body of the message.


Roy Ruddle, January 2008