Instruction for assignment submissions

Failure to follow the instructions will result in a loss of points or failing grade.

You will turn in your assignment both electronically and on paper, following the instruction below.
Electronic submission is due 10 minutes before the class and the hardcopy is due in class on the day the assignment is due.

General programming requirements:

Papers submission:

Electronic submission:

Help

How to create a typescript

Use the Unix command script to make typescript of terminal session.
Simply type the command "script" before you start running your program. You will see the message "Script started, file is typescript". After that, everything you type in and everything displayed on the screen will be saved in the file "typescript". When you're done with the execution, type "exit" (to exit from the Unix script program). You'll see the message "Script done, file is typescript".
For more detail, you should check out the man page for the script program to see how to make a typescript.

Make a tar file of your program

Below is an example that creates a tar file for email submission. Again assume that your CS login name is "john". First, you will create the directory "john" (say, under /u/john/cs201) and copy all the files and directories to be submitted into the directory /u/john/cs201/john/. I recommend that you use "cp -p" for copying files. For coping directories, you can use "cp -rp". The option "-p" will preserve the original time stamps of your files, and the option "-r" will copy the directories recursively. Below shows a screen shot of making the tar.

    /u/john/cs201/> ls john/
    Makefile test.c typescript
    /u/john/cs201/> tar cvf john.tar john/*
    john/Makefile
    john/test.c
    john/typescript
    /u/john/cs201/> ls -l john.tar
    -rw------- 1 john them 10240 Mar 31 10:00 john.tar
Related commands:
  1. To see what are in a tar file, say "john.tar", do the following:
         tar tvf john.tar
    Note this command does not extract files from john.tar, but rather it shows what're inside it. This is very useful before you actually extract a tar file.
  2. To untar a tar file, say "john.tar", do the following:
         tar xvf john.tar
    This will create the directory "john" with all the files that are inside it. Warning: whatever files and directories in john.tar will overwrite existing ones with the same names. To test this command, it's better that you do it under a temporary directory so that you don't overwrite anything by accident.

See other helpful information here.


Go to CS 201 home page