Homework Guidelines

Your homework will be graded based on following:

  1. The correctness of your programs
  2. The style of your code

Correctness

  1. All programs must compile – If your program does not compile, you’ll automatically get 0.
  2. Usually the homework assignments will only state the major objectives of the programs to be written. It is up to you to make design decisions about things like efficiency, error handling and so on.

Style

  1. Comment your code to increase readability of your program. For example, you may explain what does a function do.
  2. Uncessary comments will be deducted for points.
  3. You may use “http://clang.llvm.org/docs/ClangFormat.html” for formatting your code before submission. In fact, you may want to use it all along, since proper formatting is an aid to correct coding.
  4. Partition your code into reasonably-sized functions.