Giving Credit Where Credit Is Due

If you reuse portions of a previous program in one of your later programs, it is essential that you give credit to any prior partners. This also applies if you use any code you found on the web or if you got something from the TA or a tutor. Please remember that it is not ok to share or borrow code from other students in the class.

This is simply good practice in all creative endeavors. You must give credit to the creators. In this case, it will also avoid any problems with academic dishonesty. You might lose some points if you borrowed too much of your program from elsewhere (the web, the TA, your roommate) and gave them credit, but you would not be accused of academic dishonesty.

Failure to give credit could result in charges of academic dishonesty when the same bit of code also shows up in some other student's program because they also got it from the same place as you.

For example, here is a simple example used early on in class:
/**
Draw a rudimentary car.
@author Charlie McDowell
*/

size(400,400);

// draw the body
rect(100,100,200,50);

// draw the wheels
ellipse(150,150,50,50);
ellipse(250,150,50,50);

// draw the windshield - use 50 to also control the size of the windshield
line(150,100,200, 50);


If you used this as the basis for your program (not recommended) and just added some color and then inserted some code from another class example to draw a flower, your program might be like this (with proper attribution to Charlie McDowell).

/**
 * Draw a rudimentary car and a flower.
 */

size(400,400);

// draw a car - this is from Charlie' McDowell's car0.pde example with some color added

// draw the body
fill(255,0,0); // a red car
rect(100,100,200,50);

// draw the wheels
fill(0); // with black wheels
ellipse(150,150,50,50);
ellipse(250,150,50,50);

// draw the windshield - use 50 to also control the size of the windshield
line(150,100,200, 50);

// The following draws a flower
// It is from Charlie McDowell's flower.pde example
// with almost no modification.
stroke(255,255,0);
fill(100,0,100);
translate(50,50);
smooth();
float angle = PI/8;
for (int i = 0; i < 16; i++) {
  translate(0,-30);
  ellipse(0,0,20,60);
  translate(0,30);
  rotate(angle);
}


Although you might not get a lot of points because your modifications were minor, you would not be accused of academic dishonesty.