Edit: And what about comments? Sure, there's only so many ways to write taking an average of an array, but are even extraneous things like comments this similar? |
No, nothing so blatant like that. It really was just both of us practically saying the same thing at some point and used very similar wording.
And no, you can't strangle them now. But I would leave all possibilities open... perhaps you left your computer open, and he couldn't help but peer into it. Just saying. |
Not possible. If he had actually copied, it would be quite a story to hear how he found my .cpp files to copy off of.
Are there any instances in the code where you made the algorithm more robust than your friend's implementation? |
I was hoping for that too, but he says he searched up most of the code online, so he implemented it the exact same way, down the down for loop without a last statement - "for(rarities i; !inFile.eof(); )" . On one of the assignments he gave me a 0 on for suspected cheating I definitely did some extra stuff, but I haven't seen my friends code for that one yet.
To clarify, our variable names were very similar in many places (places where you would or wouldn't expect them to be), but they were different completely for some parts.
I take it you would say that you are more experienced in programming than your friend, since you said you taught him? |
Very much so, the professor knows this I'm sure.
EDIT:
You said you're friends. Do you live in the same dorm or something? Despite being friends, do you avoid doing the actual homework together? If you're saying even the comments are almost identical... I can only assume he is looking at your code, sorry. I hate to cast that distrustful attitude, but that's my suspicion just based on this thread. |
No worries, I don't trust anyone. The issue is that I can't find any possible way he could have seen my code. We don't live in the same dorm or anything like that. With the first few assignments in the class, I sat with him and helped him with syntax and such, but never gave him code. After a few assignments, I let him off into the wild to code for himself. He always says that he ends up looking up a lot of the code.
As a counter to that... multiplying a random number by 100 to make it in a format that humans find pleasing is far from something suspicious. |
I agree, just that we shared many subtle things like that. There are definitely differences in our code though, subtle differences that I think show that he and I coded our programs separately and were simply following a very similar logical progression and thought process. But, we'll see.