2009-03-10, 05:13 PM
Ask him to tell the teacher that you helped him, or ask him to give you credit for it. If he's been a good friend, then let it slide if he doesn't. The truth is going to come out sometime, and if they ask him to write another program, then he'll be screwed.
