| 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
 | 
| 278 |     24 |   meaning in Scala than in Java. It changes the meaning of your program,
 | 
|  |     25 |   and you should never use it.
 | 
| 166 |     26 | 
 | 
|  |     27 | \item Do not use \texttt{var}! This declares a mutable variable. Only
 | 
|  |     28 |   use \texttt{val}!
 | 
|  |     29 | 
 | 
|  |     30 | \item Do not use any parallel collections! No \texttt{.par} therefore!
 | 
|  |     31 |   Our testing and marking infrastructure is not set up for it.
 | 
|  |     32 | \end{itemize}
 | 
|  |     33 | }
 | 
|  |     34 | 
 | 
| 174 |     35 | \newcommand{\IMPORTANTEXAM}{%
 | 
|  |     36 | \noindent
 | 
|  |     37 | \subsubsection*{Important}
 | 
|  |     38 | 
 | 
|  |     39 | \begin{itemize}
 | 
|  |     40 | \item Make sure the files you submit can be processed by just calling\\
 | 
|  |     41 |   \mbox{\texttt{scala <<filename.scala>>}} on the commandline. Use the
 | 
|  |     42 |   template file provided and do not make any changes to arguments of
 | 
|  |     43 |   functions or to any types. You are free to implement any auxiliary
 | 
|  |     44 |   function you might need.
 | 
|  |     45 | 
 | 
|  |     46 | \item Do not use any mutable data structures in your
 | 
|  |     47 | submission! They are not needed. This means you cannot create new 
 | 
|  |     48 | \texttt{Array}s or \texttt{ListBuffer}s, for example. 
 | 
|  |     49 | 
 | 
|  |     50 | \item Do not use \texttt{return} in your code! It has a different
 | 
|  |     51 |   meaning in Scala than in Java.
 | 
|  |     52 | 
 | 
|  |     53 | \item Do not use \texttt{var}! This declares a mutable variable. Only
 | 
|  |     54 |   use \texttt{val}!
 | 
|  |     55 | 
 | 
|  |     56 | \item Do not use any parallel collections! No \texttt{.par} therefore!
 | 
|  |     57 | \end{itemize}
 | 
|  |     58 | }
 | 
|  |     59 | 
 | 
| 166 |     60 | 
 | 
|  |     61 | \newcommand{\DISCLAIMER}{%
 | 
| 174 |     62 | \subsubsection*{Disclaimer}
 | 
| 166 |     63 | 
 | 
|  |     64 | It should be understood that the work you submit represents
 | 
|  |     65 | your \textbf{own} effort! You have not copied from anyone else. An
 | 
|  |     66 | exception is the Scala code I showed during the lectures or
 | 
|  |     67 | uploaded to KEATS, which you can freely use.\bigskip
 | 
| 174 |     68 | }
 | 
|  |     69 | 
 | 
|  |     70 | \newcommand{\DISCLAIMEREXAM}{%
 | 
|  |     71 | \subsubsection*{Disclaimer}
 | 
|  |     72 | 
 | 
|  |     73 | It should be understood that the work you submit represents
 | 
|  |     74 | your \textbf{own} effort! You have not copied from anyone else. An
 | 
|  |     75 | exception is the Scala code I showed during the lectures or
 | 
|  |     76 | uploaded to KEATS, which you can freely use.\medskip
 | 
|  |     77 | 
 | 
|  |     78 | \noindent
 | 
|  |     79 | During the exam you may \textbf{not} communicate with other people: no email,
 | 
|  |     80 | instant messaging, discussion forums, use of mobile phones, etc.
 | 
|  |     81 | \bigskip
 | 
| 166 |     82 | } |