From d8bebf311005f0f3276b7867da0eb3ee2703f316 Mon Sep 17 00:00:00 2001 From: gauthiier Date: Wed, 2 Nov 2016 09:22:36 +0100 Subject: [PATCH] assigments[1] --- assignments.html | 42 ++++++++++++++++++++++++++++++++++++++++++ assignments.md | 40 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 82 insertions(+) create mode 100644 assignments.html create mode 100644 assignments.md diff --git a/assignments.html b/assignments.html new file mode 100644 index 0000000..99a1625 --- /dev/null +++ b/assignments.html @@ -0,0 +1,42 @@ + + + + + + + CTH-2016 / Assignments + + + + + + +
+

CTH-2016 / Assignments

+
+

Assignment #1

+

For this assignment you will be developing a command line interface for a fake "bookstore". Using the node library commander you will make available a command line interface to your program which, when executed, will output information of books that match the following criteria: (1) book title, (2) author name, (3) price, and (4) kind (paperback or hardcover).

+

In order to gather data for your script, select 5 books from either the Athenaeum Boekhandel or the American Book Center and construct a simple "hardcoded" database out of these (see example from the class).

+

Below are two examples of inputs and outputs where the data was taken from the Athenaeum Boekhandel

+
$ node bookstore.js --author "Hans Ulrich Orbist"
+
+Title: Ways of Curating
+Author: Hans Ulrich Orbist
+Price: 16.95
+Kind: Paperback
+
+
$ node bookstore.js --title "The Hatred of Poetry"
+
+Title: The Hatred of Poetry
+Author: Ben Lerner
+Price: 13.95
+Kind: Paperback
+

Grading

+

This assignment will be graded on three aspects: 1) does the code work and execute as intended, 2) is the code clearly structured and documented (don't forget your README!) and 3) is the code efficient.

+

You will hand in your assignment through your account on Github. Please refer to CTH-2016 / Assignments Configuration on how to set up your assignments portfolio properly.

+

The dues date for this assignment is — Tuesday November 8 2016 at 13:00.

+
+ + \ No newline at end of file diff --git a/assignments.md b/assignments.md new file mode 100644 index 0000000..f28fe7a --- /dev/null +++ b/assignments.md @@ -0,0 +1,40 @@ +--- +title: CTH-2016 / Assignments +--- + +## Assignment #1 + +For this assignment you will be developing a command line interface for a fake "bookstore". Using the node library [commander](https://www.npmjs.com/package/commander) you will make available a command line interface to your program which, when executed, will output information of books that match the following criteria: (1) book title, (2) author name, (3) price, and (4) kind (paperback or hardcover). + +In order to gather data for your script, select 5 books from either the [Athenaeum Boekhandel](http://www.athenaeum.nl) or the [American Book Center](http://www.abc.nl) and construct a simple "hardcoded" database out of these (see example from the class). + +Below are two examples of inputs and outputs where the data was taken from the Athenaeum Boekhandel + +``` +$ node bookstore.js --author "Hans Ulrich Orbist" + +Title: Ways of Curating +Author: Hans Ulrich Orbist +Price: 16.95 +Kind: Paperback + +``` + +``` +$ node bookstore.js --title "The Hatred of Poetry" + +Title: The Hatred of Poetry +Author: Ben Lerner +Price: 13.95 +Kind: Paperback +``` + +### Grading + +This assignment will be graded on three aspects: 1) does the code work and execute as intended, 2) is the code clearly structured and documented (don't forget your README!) and 3) is the code efficient. + +You will hand in your assignment through your account on Github. Please refer to [CTH-2016 / Assignments Configuration](./assignments-conf.html) on how to set up your assignments portfolio properly. + +The dues date for this assignment is — Tuesday November 8 2016 at 13:00. + +