Wednesday, June 16, 2004

Exercise[30]

Finish implementing the Java or JavaScript Util methods shown below (i.e. toArray, copyOfArray, swap, flip, flipCopyOfArray, and flipCopyOfString).

When you are finished, send an email to jspurgeon@vcstudent.org with the subject "Exercise[30]". Include your completed functions in the body of the email message or include a reference to the code in the message.

Grading Rubric

  • Each correctly completed method is worth 10 points.
  • Following the instructions above is worth 10 points.
  • Work turned in late will be penalized 10 points.

Due Date

End of day Mon, 5 Dec 2016

Note

java FlippantFunctions "abc" should output:
abc
cba
abc
cba

FlippantFunctions.main(["abc"]) should output:

abc
cba
["a", "b", "c"]
["c", "b", "a"]