SE 3M04 T1 2004
Lab 1 - (Week of Sept 20)
- Due: Friday September 24, 20:00 through WebCT.
Normally the labs will be due within 24 hours of the actual
lab section, but due to the lab scheduling problems, there will
be additional time given this week.
- Goals:
- Review C coding.
- Details:
- Get the following Windows executable.
- The program takes a command-line argument, your team ID.
When you have registered your team with the TA (teams should be 3
people, but can be 2 people in exceptional circumstances), you
will be given a team ID. This will be used to subsequent
assignments.
- The output of the program will be a source C program.
The comments in the C program are correct - they detail what
the program is supposed to do. However, the program itself
is buggy; in fact, it may not even compile!
It also contains several examples of 'bad' code --
defined as code which results in warnings from the compiler
(once the code compiles error-free that is).
- You must:
- Fix the program so that it does the right thing.
You may 'fix' the code in any way you see fit, except
that you are not allowed to change the comments.
- Remove all compiler warnings.
gcc -Wall -pedantic was used to test these warnings.
- Deliverables:
One .zip or .gz file (your choice), containing exactly two files.
One plain text (ASCII) file, "Team_ID".c containing
your code, and another plain text (ASCII) file, "Team_ID.log"
containing your log.
Since this is a very easy lab, part of this lab will be marked on
how well you can follow instructions. Read these directions carefully!.
Back to main page