CSE 1320 Lab Submission Information for Dr. Tiernan’s sections

Last Updated Oct. 1, 2008

 

1.                   Required lab submission items

a.       Softcopy of script file (which will  include a printout of the  source file) (see 5 below)

b.       Softcopy of source files (including all user defined .c and .h files) i.e. the program files written by you  (see 6 below)

c.        Softcopy of any data files created by you and used in testing as recorded in the script file.

2.                   Submission time

a.       Softcopies must be e-mailed to the TA BEFORE the beginning of class time on the due date or at the due date and time if it is earlier than class time.

b.       Late labs (i.e. late e-mails) will receive a zero (0) grade unless prior arrangements have been made with the instructor

3.                   Required filename for program files:    xxxx1234Lab#.c   or   xxxx1234Lab#.h

a.       xxxx1234 : Your omega login ID

b.       # : the lab assignment number (Lab1, Lab2, etc.)

c.        If there are multiple source files then the names should have ‘a’, ’b’, etc. appended:  xxxx1234Lab#a.c and xxxx1234Lab#b.c for example

d.       FILES WHICH ARE NOT NAMED AS DESCRIBED ABOVE MAY NOT BE ABLE TO BE GRADED.

4.                   Coding Issues

a.       Submitted source code must compile and run without errors or warnings.

b.       Working partial labs may be submitted for partial credit.

c.        Be sure to follow the documentation guidelines discussed in class including indentation

d.       NO GLOBAL VARIABLES MAY BE USED IN YOUR CODE

e.        Global constants are allowed in the form of #define statements or const declarations

f.         Use all UPPERCASE for the names of constants in your program

g.       Use all lowercase or mixed case for the names of your variables

5.                   How to make a script file.
  A script file is a recording of everything that is printed on the computer screen from the time the script session is started (with the command script ) until the script session is ended (with the command exit). Following are all the steps needed to make the script file for your assignment.  See the man (manual) page on omega for more info about script (omega> man script)

a.       Remove old compiled versions of the code with the command:

omega> rm a.out

b.       Start the recording of the script file that you will call scriptfilename.  The scriptfilename can be any name you choose but do NOT use the same name as the name of your C program. For example you might call your script file xxx1234script# or xxx1234lab#.log.  Use the command:

omega> script scriptfilename                

c.        Using the cat command, print out the program source file (your program) to the screen so that it is recorded in the script file.  If you have multiple files, just cat them one after another.  (cat stands for concatenate)

omega> cat xxxx1234Lab#.c 

d.       Print a listing of the current directory (to show that there is no compiled version of your lab in the current directory)

omega> ls -l

e.        Compile your source file

omega> gcc xxxx1234Lab#.c

f.         List the directory again showing the new compiled file named a.out (the default name for the compiled program) or whatever you named it

omega> ls -l

g.       Run the program by invoking a.out or whatever your compiled program is named.  Run any given sample data and your chosen data as well.

omega> a.out

h.       When you have run all the needed executions of your lab assignment, end the script session by typing

omega> exit

i.         To eliminate excess blank lines in your script file before printing you can do the following command.  Remember this is using the scriptfilename as the input.  You should save the resulting file into a new script file name (newscriptfilename)

omega> col –b < scriptfilename > newscriptfilename

 

6.                   Emailing softcopy to the TA. :

a.       Mail all your files as attachments to one e-mail message to the TA by the due date and time. 

b.       Required e-mail Subject: “CSE1320-00s xxxx1234 Lab#”  where s is the section number of the class and xxx1234 is your omega user ID and # is the number of the lab assignment being submitted.

c.        Send the softcopies directly from omega to the TA. 

The pine e-mail system makes this easier to do than the elm system on omega.  If you do not know how to use pine, refer to: http://www.washington.edu/pine/tutorial.4/index.html

d.       Send the source code and other files to the TA as ATTACHMENTs to the e-mail message.  Do not put the code in the body of the e-mail.

e.        If you resubmit your source code before its due date, add “new version” in addition to the information above.

f.          Make sure to copy yourself on the e-mail so you can show proof of on-time submission just in case your TA does not receive your e-mail.