cth2016/assignments.html
2016-11-02 09:22:36 +01:00

42 lines
2.3 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="generator" content="pandoc">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
<title>CTH-2016 / Assignments</title>
<style type="text/css">code{white-space: pre;}</style>
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link rel="stylesheet" href="style/html5.css">
</head>
<body>
<content>
<header>
<h1 class="title">CTH-2016 / Assignments</h1>
</header>
<h2 id="assignment-1">Assignment #1</h2>
<p>For this assignment you will be developing a command line interface for a fake &quot;bookstore&quot;. Using the node library <a href="https://www.npmjs.com/package/commander">commander</a> 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).</p>
<p>In order to gather data for your script, select 5 books from either the <a href="http://www.athenaeum.nl">Athenaeum Boekhandel</a> or the <a href="http://www.abc.nl">American Book Center</a> and construct a simple &quot;hardcoded&quot; database out of these (see example from the class).</p>
<p>Below are two examples of inputs and outputs where the data was taken from the Athenaeum Boekhandel</p>
<pre><code>$ node bookstore.js --author &quot;Hans Ulrich Orbist&quot;
Title: Ways of Curating
Author: Hans Ulrich Orbist
Price: 16.95
Kind: Paperback
</code></pre>
<pre><code>$ node bookstore.js --title &quot;The Hatred of Poetry&quot;
Title: The Hatred of Poetry
Author: Ben Lerner
Price: 13.95
Kind: Paperback</code></pre>
<h3 id="grading">Grading</h3>
<p>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.</p>
<p>You will hand in your assignment through your account on Github. Please refer to <a href="./assignments-conf.html">CTH-2016 / Assignments Configuration</a> on how to set up your assignments portfolio properly.</p>
<p>The dues date for this assignment is — Tuesday November 8 2016 at 13:00.</p>
</content>
</body>
</html>