For all programming assignments, these are guidelines to follow:
- The program should be implemented in one of the following three languages: Java, C, or C++.
- You should name your main class or method according to the instructions in the assignment specification, if provided.
- If not provided, you may name your source file as you wish, as long as the source file name is the same as the class file name.
- Your program should be submitted as a zip or tar archive.
- The name of the archive should be:
- last-name-of-student-1_last-
name-of-student-2_assignment-n.zip
or
- last-name-of-student-1_last-
name-of-student-2_assignment-n.tar
- last-name-of-student-1_last-
- In the header of each class,
you are required to include the following information
about the assignment:
- Name of the assignment
- Name of IDE or compiler (only if c/c++ was used)
- Full names of all partners
For example, if you used Java, the header might look like:
/**
* Assignment 1
*
* Authors: James Gosling, Ken Arnold
*
* ...
*/
public class Foo {
...
}
If you used C++, the header might look like:
#include <iostream>
/*
* Assignment 1
* IDE : VS2008
* Authors : Bjarne Stroustrup
*/
using namespace std;
int main() {
}
Standard libraries
Use only standard libraries in your solutions.
If you must use a non-standard library,
then include it in the zip or tar file.
Console applications
All programming assignments will be graded by the GTAs as console
applications. That is why, before submission, the following points
should be checked:
If you used Java:
- Your program should be compatible with java compiler from Sun™.
- One of the classes in your program (if more than one was developed) should contain the main method. Its signature:
public static void main(String[])
You can find additional info about main method here:
Also, it is useful to know about the javac command:
http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javac.html
- You program should be compiled in VS2005, VS2008, GCC compiler, or NetBeans 6.1
NOTE: Standard input and command line arguments DIFFER. See:
-
Command line arguments:
- Java:
http://java.sun.com/docs/books/tutorial/essential/environment/cmdLineArgs.html - C/C++:
http://www.d.umn.edu/~gshute/C/argv.html
http://www.cprogramming.com/tutorial/lesson14.html
- Java:
- Standard input: