### Question:
RulesOf6005 { public static boolean mayUseCodeInAssignment(boolean writtenByYourself, boolean availableToOthers, boolean writtenAsCourseWork, boolean citingYourSource, boolean implementationRequired) { return writtenByYourself && !availableToOthers && writtenAsCourseWork && citingYourSource && implementationRequired; }  static boolean mayUseCodeInAssignment(boolean writtenByYourself,
            boolean availableToOthers, boolean writtenAsCourseWork,
            boolean citingYourSource, boolean implementationRequired); static void main(String[] args);  }### Answer:
@Test public void testMayUseCodeInAssignment() { assertFalse("Expected false: un-cited publicly-available code", RulesOf6005.mayUseCodeInAssignment(false, true, false, false, false)); assertTrue("Expected true: self-written required code", RulesOf6005.mayUseCodeInAssignment(true, false, true, true, true)); }