![]() |
i think i found a cheater
Hello,
While this may seem petty to some, I would like to know what some people think about these 2 sets of code. Here is the story. I finished an assignment for my Java class and was helping another kid in my class on his. I put my thumb drive in the computer he was working on to pull up my code to check something. Long story short, I forget to get my thumb drive back until about an hour later when I remembered. I told the kid when I was helping him if he needed anything to IM me. Now he's asking for help and he sent me his code and it's really similiar to mine. I know some of it will be similiar because I told him the way I did mine and showed him my code, but he can barely write complete if/else and basic import statements. The code consists of 4 total classes: 2 classes from my project 2 classes from his projectI have all the code here and if some of you could take a look at it and let me know what you think about the similarities, I'd appreciate it. I'm not failing a class or taking a zero because he can't do the assignment on his own. Sorry if I sound petty, I'm really not. I just don't like when people copy my work and then ask me questions on how to do something like they did it on their own. I guess I should probably include what the program does. It's just a small simulator for "Paper, Scissors, Rock" where you create two hands, assign them values, compare them, then report the winner. If anyone wants me to post the assignment, let me know. Thanks! My Code: HandThrow Class :
package rps;My Code: Hand Class :
package rps;His Code: assign02 class (my HandThrow Class) :
package testrps;His Code: hand class :
package testrps; |
From what I can tell from looking at the code, while it is entirely possible he copied from you, it is also possible that he wrote it himself. There are definitely many similarities, but that is to be expected for such a short program. If I were you, I would ask him; it can't hurt.
An unrelated point of interest: As you are treating the throws as 0, 1, and 2, it is possible to determine the winner (-1, 0, or 1) in less than 4 lines of code using simple arithmetic. |
As much as getting validation that these may or may not be the same on an online forum might feel good, it gets nothing done toward potentially keeping you from failing.
A better approach might be to talk to your teacher, tell him you forgot your jump drive after helping a student (don't mention the name of the other student unless you must) and that you aren't sure if the code was copied or not, and show samples of each code. If you're not comfortable going to your teacher, go to a teacher that teaches similar material, or an advisor for the program (if in college). While titanium's suggestion of confronting the student might work, most likely the student will deny that there's a problem either way (either because he didn't realize he copied it or that he thought simply changing variable names would be sufficient, or because he truly did copy your code and doesn't want to get caught). I'd be willing to bet though if you went to the teacher, told your concerns, the teacher would keep an eye out for such things, and not worry that you were cheating, since it matches your coding style, you know what the things do, and you were upfront about it. -MBirchmeier |
Quote:
|
This assignment is due tomorrow (Wednesday) and I turned my code in Friday. Not to be egotistical or anything, but this class is very easy to me. I transferred from a different school (this is my 5th year of college) and I did not get credit for this "advanced" programming class. The teacher knows I am ahead most of the students in the class in terms of skill. I "hope" she will know that I did not copy off of him and that I would not just blatanly give my work to someone. That's retarded.
|
If you're that good, the teacher must realize that someone else won't spring to that level overnight. You only have to worry that the teacher might think you're so dumb as to give it away on purpose. MBirchmeier's post represents your best bet, in my opinion.
|
You should have made a Hand superclass and then created subclasses like RandomHand, StrategicHand, etc.. that inherited :P Let each class of hand worry about setting its state based on its strategy, rather than having the "driver" do it.
|
Quote:
|
Quote:
-MBirchmeier |
i had a similar problem last semester when this guy always wanted to "work with me" on some project. fortunately that faggot changed his major or something. i do not collaborate with other students, google knows more than they do, and the prof is paid to help you if you need it. the only people i ever might ask for help from is ya'll, since ya'll do not have any real vested interest in the stuff i'm working on.
the blind leading the blind... oh, and i have a wife and kid and job and shit, so realistically, i don't have time to waste helping others...WHICH SOUNDS AWFUL...but for real, i don't have time for myself, so i don't have time for them. i love video games and i think since the start of the semester 2 months ago, i've gotten to play 3 times...this christmas i WILL be playing the new splinter cell if it ever comes out...beat the last one last year during christmas break. :) |
| All times are GMT -5. The time now is 1:14 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC