From 4780be1578cebf4f54ed2e5c633ff997c51dd497 Mon Sep 17 00:00:00 2001 From: "6.005 Alex" Date: Fri, 23 Jan 2015 18:41:34 +0000 Subject: [PATCH] back to Sourse Code src/RulesOf6005.java --- src/rules/RulesOf6005.java | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/src/rules/RulesOf6005.java b/src/rules/RulesOf6005.java index ee99c5f..a0c7bcf 100755 --- a/src/rules/RulesOf6005.java +++ b/src/rules/RulesOf6005.java @@ -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(); } /** @@ -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)); } }