CS 251

Spring 2009

 

 

General assignment directions

(to be followed for all assignments)

 

 

  1. Turn in your declaration (i.e. *.h) and definition (e.g. *.cpp) files.
  2. Use standard C++, your program MUST compile and run on lore.cs.purdue.edu (the machines in HAAS G040 where the PSO's are held). The TA's will help you at the PSO's with setting up a Makefile that will build your application from source files. Turn in the Makefile used to compile your application.
    1. Here is a simple Makefile. Note that the file needs to be named Makefile (capitalization on the M).
    1. Unless specified in "Assignment specific turn in instructions", make sure to use the Makefile you got for assignment 1 as a template. Makes changes on that for later assignments. Make sure the executable is named main as the template (all lower case). If the name of the executable is incorrect, it won't be graded. if your directory is named differently from that specified on the assignment, you will receive a 0 for the project grade.
    2. Please make sure you didn't use any library/source explicitly forbid to use. If such library/source code is used. You will get 0 pt for this assignment, your extra credit won't be graded and the grader will report this to Professor.
    3. Your code is REQUIRED to compile with /opt/csw/gcc3/bin/g++ (gcc version 3.4.5) on lore.cs.purdue.edu. Please update your Makefile or use the one that is provided with the assignment. If your code doesn't compile with this compiler, then even if it compiles with another, your code will still be considered noncompiling and that program will receive a 0.
  1. Use the turnin software, a tool available on the lore.cs.purdue.edu
    1. The line you will need to execute will be:

turnin -c cs251 -p labX foldercontainingcodetobeturnedin

where -c specifies the class (cs251) -p specifies the project which will be stated on the assignment sheet and foldercontainingcodetobeturnedin specifies the name of your directory; ALL your files need to be in the directory called foldercontainingcodetobeturnedin and only this directory and no subdirectories unless otherwise stated. If you do not follow these instructions your project will not be graded.

    1. You can check your code submission with the command:

turnin -c cs251 -p labX -v

the option -v tells the program to list your submission.

c. Be aware that when you turnin, any previous turned in submissions will be overwritten and that we will not be able to recover the overwritten files.

d. The turnin command needs to be run lore.cs.purdue.edu machines and in the directory ABOVE the foldercontainingcodetobeturnedin directory.

  1. If you attempt an extra credit question, i.e. Extra-credit 6, turn in a blank (empty) file named extracredit6 (all lower case and no spaces in the file name) or it will not be graded.
  1. Sometimes one operation can be implemented differently, please always use the book/slides and the sampleoutput as the reference. Deduction will be applied if your implementation is different with the one used in the book even it theoretically works.
  2. For written assigments. It is required to use latex, equation editor or mathtype to write math equations.
    (you could download mathtype for free at https://engineering.purdue.edu/PULS/pc_software/math_notation_tools ).
    The text-only equation such as big-Omega (n^2) or O(g(n*n)) will not be acceptable and no point will be given.
  3. For written assignment, You need to clearly explain how you obtain the answers. Simply providing the final answers without clear explanation will cause significant deduction. (e.g. You need specify what is the number of primitive operations in each step, and sum them together for total number, instead of just giving the total number as the result)
  4. The figures must be embedded in the PDF you submitted. If it is submitted as a separate file, it won't be graded.