LABS 

 

There will be 6 or 7 lab assignments worth 12% of your total mark. The Lab assignments will be posted here. You can checkout your marks from gradebook when they are posted by the TA’s.

Submission: you should submit your source code files (*.java, *.cpp, *.hpp, *.h) through the submission server submit.cs.sfu.ca. The submission server only accepts the zipped files. You can zip your assignment files using the winzip program or the zip, gzip linux command.

 

You can use any compiler that you want but you need to make sure that your program will compile under the Linux. It’s easy, create a directory called src and copy all your source files (*.java, *.cpp, *.hpp, *.h) in it then in a Linux shell type javac myprog.java for compiling your program and java myprog for running your program. For c++ user you need to run g++ *.cpp –o myprog command to compile your program and then ./myprog to run it. If you are writing in Java this should work without any problem however, your c++ source files from some compilers (for instance Visual C++) may not directly compile in Linux. Drop by my or your TA’s office hours if you have difficulty compiling in Linux. Zip all your source files in the src directory and submit it.

 

Important Remark: there will be four submission groups for each lab assignment make sure you submit to the group that you belong to (if you are registered in the first lab submit to the first group, and so on) otherwise there will be a 50% penalty. If you submit to more than one group you get a 0.

Late submissions: no late submission is accepted for lab assignments.

Implementation Language: The programming problems in assignments, can be written in either JAVA or C++. It’s not necessary to learn JAVA for those who know only C++ and to learn C++ for those who know only JAVA.

 

 Lab1 (Due Friday January 18th, at 14:30)-Solution Java C++

 Lab2 (Due Friday February 1st, at 23:59)-Solution (written by Amir Saei) No late submission is accepted.

 Lab3 (Due Tuesday February 19th, at 23:59)-No late submission is accepted.

 Lab4 (Due Friday February 29th, at 23:59)-Solution (written by Zhuravlev, Sergey ) No late submission is accepted.

 Lab5 (Due Friday March 14th, at 23:59)-Solution (written by Chris Parsons) No late submission is accepted.