While you are encouraged to talk with other students about the homework you must not copy or share code. Do not show your code to others and do not look at other students' code. You should also not copy code from the web or anywhere else. If you submit an assignment with code that is not your own, you will fail that assignment. If you do this more than once, you will fail the course.
In general, it is fine to talk with others about any aspect of the assignments. But you should not share code or pseudocode under unless I have explicitly said that it is ok to do so. If you get help, advice, inspiration from someone in the class or from some other source you must acknowledge that source. Do so directly in your source code. Indicate what sort of help you got. If the source is a book or a website, include enough information so that someone reading your code can get access to it.
In life, opinions tend to differ about what constitutes good style. This is true in programming, but to a much lesser degree. There are a number of style conventions that are almost universal (and for good reason), and you should use them in all your programs. I will not enforce a particular style in this class. However, it is very, very important that you develop a consistent style.
For this class I will use and evaluate your programs based on the coding standards written up for the into computer science sequence at the University of California, Riverside. Our textbook also has excellent style advice.
I will evaluate your programs using the following as a guideline.