Referencing is a way of acknowledging the sources that you use to complete your labs and assignments. You need to provide a reference whenever you draw on someone else's code, pseudocode or ideas. You also need to provide a reference whenever you use your own previously submitted work.
You must clearly attribute the source of any code, pseudocode or ideas that you use/adapt in an accompanying comment. This comment must:
Example:
// Gets a list of all prime numbers up to 'n' List getPrimes(int n) { List res = ListNew(); bool *prime = malloc((n + 1) * sizeof(bool)); assert(prime != NULL); memset(prime, true, n + 1); // The following code was taken from https://www.geeksforgeeks.org/sieve-of-eratosthenes/ // It uses the Sieve of Eratosthenes to generate prime numbers for (int p = 2; p * p <= n; p++) { if (prime[p] == true) { ListAppend(res, p); for (int i = p * p; i <= n; i += p) { prime[i] = false; } } } free(prime); return res; }
You are allowed to use or adapt any amount of provided code or pseudocode from the current iteration of the course. This includes lecture slides and code, tutorial questions and answers, and lab exercises and solutions.
You are allowed to use small amounts (< 10 lines) of
general purpose
code (not related to the assessment) obtained from external websites such as Stack Overflow.
You are allowed to use any amount of code that you submitted earlier in the course. You must still include a reference with a description and URL. You should use the URL of your submission from your submissions page.
Example:
// Implementation of the stack ADT // This was taken from my lab01 submission // https://cgi.cse.unsw.edu.au/~cs2521/23T1/view/main.cgi/mon09-strings/5555555/submission/lab01/Stack.c
Resource created Wednesday 18 January 2023, 02:38:51 PM, last modified Wednesday 12 April 2023, 11:45:42 PM.