cws/cw01.tex
changeset 79 2d57b0d43a0f
parent 42 a5106bc13db6
child 86 f8a781322499
--- a/cws/cw01.tex	Wed Nov 30 10:07:05 2016 +0000
+++ b/cws/cw01.tex	Thu Dec 01 17:08:02 2016 +0000
@@ -12,7 +12,16 @@
 processing and recursion. The third part is more advanced and might
 include material you have not yet seen in the first lecture.
 Make sure the files you submit can be processed by just calling
-\texttt{scala <<filename.scala>>}. 
+\texttt{scala <<filename.scala>>}.\bigskip
+
+\noindent
+\textbf{Important:} Do not use any mutable data structures in your
+submissions! They are not needed. This excludes the use of
+\texttt{ListBuffer}s, for example. Do not use \texttt{return} in your
+code! It has a different meaning in Scala, than in Java.
+Do not use \texttt{var}! This declares a mutable variable. Make sure the
+functions you submit are defined on the ``top-level'' of Scala, not
+inside a class or object. 
 
 
 \subsection*{Disclaimer}
@@ -195,7 +204,7 @@
 Since the question about Mr Drumb's business acumen remains, let's do a
 quick back-of-the-envelope calculation in Scala whether his claim has
 any merit. Let's suppose we are given \$100 in 1978 and we follow a
-really dump investment strategy, namely:
+really dumb investment strategy, namely:
 
 \begin{itemize}
 \item We blindly choose a portfolio of stocks, say some Blue-Chip stocks