Skip to content

Commit

Permalink
back to Sourse Code src/RulesOf6005.java
Browse files Browse the repository at this point in the history
  • Loading branch information
mit2 committed Jan 23, 2015
1 parent 68d33da commit 4780be1
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions src/rules/RulesOf6005.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,8 @@ public class RulesOf6005 {
public static boolean mayUseCodeInAssignment(boolean writtenByYourself,
boolean availableToOthers, boolean writtenAsCourseWork,
boolean citingYourSource, boolean implementationRequired) {
boolean usuable = false;
if (writtenByYourself) {
usuable = true;
}
else {
if (!writtenAsCourseWork && availableToOthers && citingYourSource && !implementationRequired) {
usuable = true;
}
}
return usuable;
// TODO: Fill in this method, then remove the exception
throw new UnsupportedOperationException();
}

/**
Expand All @@ -55,7 +47,7 @@ public static boolean mayUseCodeInAssignment(boolean writtenByYourself,
*/
public static void main(String[] args){
System.out.println("You may certainly use code you wrote yourself: " +
RulesOf6005.mayUseCodeInAssignment(false, true, false, true, false));
RulesOf6005.mayUseCodeInAssignment(true, false, true, true, true));
}
}

0 comments on commit 4780be1

Please sign in to comment.