To start I am in a programming class with a handful of students in it. We use a website to post all of our homework and programming activities. One student in there is falling behind, and I've tried to tutor her. I don't know if she is actually learning the subject matter or not. About five days ago, we had an activity that involved concatenating rows and columns. I was one of the first few people to upload. It is a post-first to view everyone else's entry, so we can critique each other's work. My friend uploaded something and then said it was the wrong project. She then said she'd look at my code to get hers to work. However when she posted again, it looked nearly identical to my entry. I used some obscure stuff like Stringbuilder and an obscure block of code designed to fill my arrays with random ASCII characters starting with lowercase a; which I listed the webpage where I found information on those subject on my assignment. I think she cheated on this, and flat out copied mine. Do I tell the teacher, and if so what do I say? I have a huge problem speaking in public, so I don't know if I can actually manage to get my point across.
It's been a few days already, but I hope this still helps.
I think you should tell the teacher. It may feel like you're doing something against this cheating student, but it's best for her too. When the teacher knows that she doesn't understand what she's coding they can help her.
Next time she asks to see your code, don't give it to her. Instead, explain carefully what the code should do and make her write every single line herself. Drawing a flow chart could help too, to understand the structure of the code better. It takes a lot of time and patience, but she has a better chance of learning when she does everything herself than when copy pasting working code.
To the teacher you could say something like "Could you help <student> with <topic>. I don't think she understands what she's coding because she copied that part from me." It doesn't come out as an angry accusation because you ask for help and provides evidence to back your claim.
Rollback Post to RevisionRollBack
"Any sufficiently advanced technology is indistinguishable from magic." A. C. Clarke