Program Requirements

Comments 

When you write code for programming assignments, you should include comments. A comment looks like this: /* this is a comment */ It is text preceded by a slash and an asterisk and followed by an asterisk and a slash. The compiler will ignore everything between the slashes. The purpose of a comment is to make your code more readable by a human.

When you program, when and how to comment your code is a personal decision. It does not affect the "right-ness" of your programs. However, when you are programming assignments that will be read by someone else, it is important that you comment your code in a way that makes it easier to read for that person. In particular, for this course, your preceptor may have specific guidelines about when and how to comment. If you are in my precept, here are some general guidelines: