This course is a class of the second kind. What you turn in for your assignments, and certainly for your exams, should be your work and only your work. Do not share your work with anyone else. Note that if you ask another student to turn in your assignment for you, you may be sharing your work with someone else even if that is not your intention. The same applies if you lend your diskette to someone in a programming class, or have another student print your assignment. Certainly it is dangerous to show your code to someone else. It is not necessarily true that sharing your solution with someone else will be treated as a less serious offense than using some else's solution. For one thing, if I receive two assigments that are too similar, I can't always tell who did the work.
You are of course permitted to use your textbook, your class notes, and other resources to understand the material of the course. It is certainly permissible to discuss the material of the course in a general way with other students, or with outsiders. Code provided by the instructor, the textbook, or a web site related to the textbook and maintained by its author may be incorporated into your programs. In this case, you should credit the author. Code that you wrote or that was provided to you in other classes may be incorporated into your program, provided that you (1) document that you are doing this, and (2) credit the author if it is not you. In general, it's a less serious offense to use and credit someone else's material in your assignment than to use it without credit.
I realize that it can be difficult to understand the line between permissible discussion of the course material and impermissible collaboration on assignments. It's certainly difficult to specify this line exactly in advance for all possible situations. This is one reason I have used in the past a sliding scale of sanctions, ranging from a small deduction to splitting a grade between two students to giving a zero for the assignment or the course. In the less serious cases, grades reduced by such sanctions will qualify as "one poor grade" in the sense of the course green sheet.
A few cases are clear. Certainly asking or paying a classmate or an outsider to do your assignment counts as academic dishonesty. Even asking a classmate or outsider in a general way how to do an assignment is a bad idea. Asking about a point in the textbook or the class notes is certainly ok. In a programming course, asking about the programming language, program libraries, or the programming environment (e.g., the debugger) is ok as long as classwork is not shared in the process. Asking me about the assignment is ok, although I may decide that it is wisest not to answer your question completely. In other cases, it's safest to err on the side of caution.
Do not ask a tutor to assist you with your assignment.
Asking someone else about the algorithm to be used in an assignment is dangerous. Especially in upper-division classes, finding an appropriate algorithm is often part of the assignment.
I am obligated to report significant incidents of academic dishonesty to the office of the Vice-President for Student Affairs. The reason is to allow the university to identify repeat offenders. I am not required to recommend any sanctions at the university level, and in the past I have not done so in most cases. If I do not, and if you have not been reported to Student Affairs before, then probably nothing will happen at the university level. If you have been reported before, then the matter is out of my hands. University-imposed sanctions could include suspension or expulsion from San José State University.
Further information on the university policy on academic integrity may be found in the catalog and in the Schedule of Classes. The text of the 2004 university policy on Academic Integrity, as approved by the SJSU Academic Senate, may be found at http://www2.sjsu.edu/senate/S04-12.htm. The SJSU Judicial Affairs office also maintains a useful web site at http://sa.sjsu.edu/judicial_affairs. However as of July 2004, this latter web site linked to an pre-2004 version of the academic integrity/dishonesty policy.