Assignments, CPSC 331, Winter 2008

home page -  news -  syllabus -  schedule -  assignments -  tutorials -  tests -  java -  references -  Mike Jacobson


Instructions -  Assignment 1 -  Assignment 2 -  Assignment 3 -  Assignment 4 -  Assignment 5

 Instructions for Preparing and Submitting Assignments

General Advice

Advice about The Preparation of Programs

Provide Java source files as text files when you are asked to write Java programs to solve problems on assignments in this course. Note that your programs will be compiled using javac and tested on either Department of Computer Science linux servers or machines in the 1st floor undergraduate computer lab in Math Sciences. Although you should feel free to use whatever development environment and platform to solve these problems, it is your responsibility to ensure that your programs work properly in the enviroment that will be used to evaluate them.

Each program that you write should be

Advice about Preparation of Other Written Material

Submission of the Assignment

File names can be changed when files are submitted using Blackboard, and this can complicate things when you submit programs. Please submit a single file, using the following instructions, as your solution for each assignment in this course.

  1. Move Your Files into a New Directory.

    When you are ready to submit your solutions for an assignment create a new directory (preferably named after the assignment) and move all (and only) the files that you wish to submit into this directory.

  2. Generate an Archive File.

    Use the Unix tar command to produce a single “tar file” that includes the contents of this directory.

    You should do this by executing the command

    tar –cvf archive.tar AssignmentDirectory

    in the directory above the directory with your assignment files — that is, in the directory that contains your assignment directory — where archive.tar is the name you wish to give to the “tar file” that you wish to create, and where AssignmentDirectory is the name of the directory that stores your assignment files (which you have created already).

    After you have done this, you should find that a new file called archive.tar has been created, in the same directory as the one that contains the directory storing your assignment files.

    For example, if I have a directory called CPSC331 where I store all my files for this course, then I would probably create a new directory called Assignment1 inside my CPSC331 directory, and I would use the directory Assignment1 to store my files for the first assignment in this course. Just before submitting material for the first assignment I would make sure that Assignment1 includes the files I wish to submit. Then I would execute the command

    tar –cvf assignment1.tar Assignment1

    within my CPSC331 directory in order to create a file called assignment1.tar

  3. Compress Your Archive File.

    After doing this, use the Unix gzip command to compress your archive file, by executing the command

    gzip archive.tar

    where archive.tar is the name of your archive file.

    You should find, after this, that your file archive.tar has been replaced by another file whose name is archive.tar.gz.

    For example, if I named my files as described above then I would execute the command

    gzip assignment1.tar

    in order to create a file with name assignment1.tar.gz and this is the file that I would submit using the course’s Blackboard page.

    Note: You will not be given a chance to resubmit your assignment if you use different software (for the archiving of files and for file compression) than the software listed above and the resulting submission is not readable by the teaching assistant and instructor!

  4. Select Your Compressed File Using the File Selector in the Assignment Area, in Blackboard.

    Go the the area for the assignment in the course blackboard page. You should see that this includes

    • an “Assignment Information” area, where a copy of the assignment can be downloaded,
    • an “Assignment Materials” area, that you can use to give feedback and upload your assignment solution, and
    • a “Submit” area that you should use when you are finished with the assignment.

    The middle “Assignment Material” area includes a file selector that you should use to upload your solution.

  5. Complete the Submission Process:

    Press the “Submit” button when you are finished.

    Note: To my knowledge it is only possible to submit material by pressing the “Submit” button once!

    Furthermore, pressing “Save” does not submit your work for you, so that it will not be seen or graded if you select this instead of “Submit,” by mistake.

    Please send email to the course instructor as soon as you can, if you discover that you wish to resubmit material (perhaps, in order to correct a mistake), or if you realize that you did not “submit” your material before an assignment was due.


This page last modified:
http://www.cpsc.ucalgary.ca/~jacobs/cpsc331/W08/assignments.html