cws/cw03.tex
changeset 166 780c40aaad27
parent 163 84917f2e16cd
child 191 f78b18c4c886
--- a/cws/cw03.tex	Thu Dec 07 12:09:06 2017 +0000
+++ b/cws/cw03.tex	Sat Dec 16 23:53:28 2017 +0000
@@ -1,11 +1,12 @@
 \documentclass{article}
 \usepackage{../style}
 \usepackage{../langs}
+\usepackage{disclaimer}
 \usepackage{tikz}
 \usepackage{pgf}
 \usepackage{pgfplots}
 \usepackage{stackengine}
-%%\usepackage{accents}
+%% \usepackage{accents}
 \newcommand\barbelow[1]{\stackunder[1.2pt]{#1}{\raisebox{-4mm}{\boldmath$\uparrow$}}}
 
 \begin{filecontents}{re-python2.data}
@@ -14,7 +15,7 @@
 10 0.034
 15 0.036
 18 0.059
-19 0.084
+19 0.084 
 20 0.141
 21 0.248
 22 0.485
@@ -87,41 +88,13 @@
 and Python can sometimes be extremely slow. The advanced part is about
 an interpreter for a very simple programming language.\bigskip
 
-\noindent
-\textbf{Important:}
-
-\begin{itemize}
-\item Make sure the files you submit can be processed by just calling\\
-  \mbox{\texttt{scala <<filename.scala>>}} on the commandline. Use the
-  template files provided and do not make any changes to arguments of
-  functions or to any types. You are free to implement any auxiliary
-  function you might need.
-
-\item Do not use any mutable data structures in your
-submissions! They are not needed. This means you cannot create new 
-\texttt{Array}s or \texttt{ListBuffer}s, for example. 
-
-\item Do not use \texttt{return} in your code! It has a different
-  meaning in Scala, than in Java.
-
-\item Do not use \texttt{var}! This declares a mutable variable. Only
-  use \texttt{val}!
-
-\item Do not use any parallel collections! No \texttt{.par} therefore!
-  Our testing and marking infrastructure is not set up for it.
-\end{itemize}
+\IMPORTANT{}
 
 \noindent
 Also note that the running time of each part will be restricted to a
-maximum of 360 seconds on my laptop
-
-
-\subsection*{Disclaimer}
+maximum of 360 seconds on my laptop.
 
-It should be understood that the work you submit represents
-your \textbf{own} effort! You have not copied from anyone else. An
-exception is the Scala code I showed during the lectures or
-uploaded to KEATS, which you can freely use.\bigskip
+\DISCLAIMER{}
 
 
 \subsection*{Part 1 (6 Marks)}