CSSE Statement of Academic Integrity

The big question is, are you allowed to copy code to help finish a programming project? The answer is, sometimes. Here are the conditions under which it is fine to copy code:

  • The instructor states either verbally or in writing that, for this particular assignment, it is permissible to use pieces of code written by others. Note that it is never acceptable to turn in a project where none of the code is yours, even when doing joint projects.
  • The author or source of any code that you use, that you did not write yourself, is given proper credit. Credit should be specific enough that the reader should be able to find the source quickly ­ so include page numbers for a book, or a URL for a website, for example. Credit should be given in the comments just before the code fragment that is copied. Make it clear where the copied code begins and ends.
  • The author has given permission for you to copy. If it is another student in class, or a tutor, you can simply ask. If it is a public website, permission to copy may be implied or given by the rules of fair use of intellectual property. If you are not certain, then play it safe; find a different source or write it yourself.

If you are not sure what is OK and what is not, then ask your instructor.

Next question: Can I work with someone else? This depends entirely on the rules set out for the project by the instructor. Unless stated otherwise, the default is that you should do the project on your own, but that you are permitted to discuss algorithms and ideas with classmates (and, of course, department tutors) but code copying as outlined above is not allowed, except when the source is the official course textbook or notes supplied by the instructor.

Last question: Are cheating and plagiarism the same thing? No. Cheating is breaking the rules for an assignment as set out by the instructor or higher authority. Plagiarism is specifically using someone else’s work as if it is your own, whether by accident or with intent. Plagiarism is always cheating, but cheating need not be plagiarism.

Helpful Links

Know the Rules

You can find them in the Student Handbook.

Know the Terminology

Definitions of cheating and plagiarism are available on the Student Affairs website.

Rev. Aug 2015