The project for CS 180, Spring 2004 will consist of a sequence of lab assignments involving database programming, including such tasks as create databases, populate them with data, modify data, write SQL queries. Unless otherwise specified, this lab assignment and all subsequent ones will be turned in electronically with "submit", a tool on IC machines.
Submit is accessible from your cats account. The general form of the command is like this:
submit class_name assignment_name file1_to_submit file2_to_submit
An example is like this, say we want to submit db_client.java to lab assignment 3 for cmps180 Spring class:
submit cmps180-wt.s04 lab3 db_clinet.java
For assignment names, we use the convention "lab#", e.g. the name is "lab1" for lab assignment 1. If you are late, but within 48 hours of the due time, you can still submit, but you should use "lab#-late", e.g. "lab1-late". For information on
using submit, enter "submit -m" or "man submit" from the console.
Once you have submitted your assignment, you can use peek command to examine it and make sure it is correct. The syntax is peek class_name assignment_name file1.For more information about peek, enter "peek -m" or "man peek".
In some lab assignments, students need to record their typescripts to submit, i.e. the commands and the results. There are several methods for creating a typescript to turn in for your programming assignments. The most primitive way is to cut and paste your terminal output and save it in a file (if you have windowing capabilities). Another method is to use the Unix command script to record the terminal interaction. The script command records everything printed on your screen. The syntax for the command is
script [ -a ] [ filename ]
The record is written to filename. If no file name is given, the record is saved in the file typescript. The -a ooption allows you to append the session record to filename, rather than overwrite it. To end the recording, type exit or ctrl+D.
For more information about script, check out its man page by typing man script.