Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

(A) Create a program in Clojure that displays a collection of twelve strings in

ID: 3872194 • Letter: #

Question

(A) Create a program in Clojure that displays a collection of twelve strings in a random order. Each time the program is run, the ordering of the strings in the displayed sequence will be randomized. Each of the twelve strings must appear exactly once in the displayed sequence. The twelve strings are: "Hi", "Hello", "Howdy", "Greetings", "Hey", "G'day", "Good day", "How are you", "What's up", "How goes it", "How do you do", "Hi there"
Attach the program source code as a file named sharing.clj

(B) Provide instructions for running your program. You must assume the following: the recipient of your file and instructions will have Leiningen installed on their system; the "lein" command is available via their command-lline interface; and, they have never run a Clojure program before.
Correct, unambiguous, complete instructions for the intended audience to run the program

(C) Reflections Every assignment and project turned in must include a section (maximum 150 words) labeled “Reflection” in which you are expected to reflect on the experience of working on the assignment or project and describe your personal insights and observations associated with the experience.

Explanation / Answer

One thing to add to Arthur Ulfeldt's excellent answer is that lein creates a project.clj for you, and your main function (function where execution of the program starts from) can be defined in there. By default Leiningen creates the main function in a file called core.clj For example:

(defproject music "1.0.0-SNAPSHOT" :description "A workspace for my music experiments" :dependencies [ [org.clojure/clojure "1.3.0"] [org.clojure/math.combinatorics "0.0.1"] ] :main music.core)

now my project can be run using:

lein run

and the main function in music.core will be run.