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