| 166 |      1 | \newcommand{\IMPORTANT}{%
 | 
|  |      2 | \noindent
 | 
| 257 |      3 | \textbf{Important}
 | 
| 166 |      4 | 
 | 
|  |      5 | \begin{itemize}
 | 
|  |      6 | \item Make sure the files you submit can be processed by just calling\\
 | 
|  |      7 |   \mbox{\texttt{scala <<filename.scala>>}} on the commandline.\footnote{All
 | 
|  |      8 |     major OSes, including Windows, have a commandline. So there is no
 | 
|  |      9 |     good reason to not download Scala, install it and run it on your
 | 
|  |     10 |     own computer. Just do it!} Use the
 | 
|  |     11 |   template files provided and do not make any changes to arguments of
 | 
|  |     12 |   functions or to any types. You are free to implement any auxiliary
 | 
|  |     13 |   function you might need.
 | 
|  |     14 | 
 | 
| 212 |     15 | \item \textbf{Do not leave any test cases running in your code because this might slow
 | 
| 237 |     16 |   down your program!} Comment out test cases before submission, otherwise you
 | 
| 199 |     17 |   might hit a time-out.
 | 
|  |     18 | 
 | 
| 166 |     19 | \item Do not use any mutable data structures in your
 | 
|  |     20 | submissions! They are not needed. This means you cannot create new 
 | 
|  |     21 | \texttt{Array}s or \texttt{ListBuffer}s, for example. 
 | 
|  |     22 | 
 | 
|  |     23 | \item Do not use \texttt{return} in your code! It has a different
 | 
| 169 |     24 |   meaning in Scala than in Java.
 | 
| 166 |     25 | 
 | 
|  |     26 | \item Do not use \texttt{var}! This declares a mutable variable. Only
 | 
|  |     27 |   use \texttt{val}!
 | 
|  |     28 | 
 | 
|  |     29 | \item Do not use any parallel collections! No \texttt{.par} therefore!
 | 
|  |     30 |   Our testing and marking infrastructure is not set up for it.
 | 
|  |     31 | \end{itemize}
 | 
|  |     32 | }
 | 
|  |     33 | 
 | 
| 174 |     34 | \newcommand{\IMPORTANTEXAM}{%
 | 
|  |     35 | \noindent
 | 
|  |     36 | \subsubsection*{Important}
 | 
|  |     37 | 
 | 
|  |     38 | \begin{itemize}
 | 
|  |     39 | \item Make sure the files you submit can be processed by just calling\\
 | 
|  |     40 |   \mbox{\texttt{scala <<filename.scala>>}} on the commandline. Use the
 | 
|  |     41 |   template file provided and do not make any changes to arguments of
 | 
|  |     42 |   functions or to any types. You are free to implement any auxiliary
 | 
|  |     43 |   function you might need.
 | 
|  |     44 | 
 | 
|  |     45 | \item Do not use any mutable data structures in your
 | 
|  |     46 | submission! They are not needed. This means you cannot create new 
 | 
|  |     47 | \texttt{Array}s or \texttt{ListBuffer}s, for example. 
 | 
|  |     48 | 
 | 
|  |     49 | \item Do not use \texttt{return} in your code! It has a different
 | 
|  |     50 |   meaning in Scala than in Java.
 | 
|  |     51 | 
 | 
|  |     52 | \item Do not use \texttt{var}! This declares a mutable variable. Only
 | 
|  |     53 |   use \texttt{val}!
 | 
|  |     54 | 
 | 
|  |     55 | \item Do not use any parallel collections! No \texttt{.par} therefore!
 | 
|  |     56 | \end{itemize}
 | 
|  |     57 | }
 | 
|  |     58 | 
 | 
| 166 |     59 | 
 | 
|  |     60 | \newcommand{\DISCLAIMER}{%
 | 
| 174 |     61 | \subsubsection*{Disclaimer}
 | 
| 166 |     62 | 
 | 
|  |     63 | It should be understood that the work you submit represents
 | 
|  |     64 | your \textbf{own} effort! You have not copied from anyone else. An
 | 
|  |     65 | exception is the Scala code I showed during the lectures or
 | 
|  |     66 | uploaded to KEATS, which you can freely use.\bigskip
 | 
| 174 |     67 | }
 | 
|  |     68 | 
 | 
|  |     69 | \newcommand{\DISCLAIMEREXAM}{%
 | 
|  |     70 | \subsubsection*{Disclaimer}
 | 
|  |     71 | 
 | 
|  |     72 | It should be understood that the work you submit represents
 | 
|  |     73 | your \textbf{own} effort! You have not copied from anyone else. An
 | 
|  |     74 | exception is the Scala code I showed during the lectures or
 | 
|  |     75 | uploaded to KEATS, which you can freely use.\medskip
 | 
|  |     76 | 
 | 
|  |     77 | \noindent
 | 
|  |     78 | During the exam you may \textbf{not} communicate with other people: no email,
 | 
|  |     79 | instant messaging, discussion forums, use of mobile phones, etc.
 | 
|  |     80 | \bigskip
 | 
| 166 |     81 | } |