equal
deleted
inserted
replaced
5 \begin{document} |
5 \begin{document} |
6 |
6 |
7 \section*{Coursework 6 (Scala)} |
7 \section*{Coursework 6 (Scala)} |
8 |
8 |
9 This coursework is about Scala and is worth 10\%. The first and second |
9 This coursework is about Scala and is worth 10\%. The first and second |
10 part are due on 16 November at 11pm, and the third part on 23 November |
10 part are due on 16 November at 11pm, and the third part on ??? November |
11 at 11pm. You are asked to implement three programs about list |
11 at 11pm. You are asked to implement three programs about list |
12 processing and recursion. The third part is more advanced and might |
12 processing and recursion. The third part is more advanced and might |
13 include material you have not yet seen in the first lecture. |
13 include material you have not yet seen in the first lecture. |
14 Make sure the files you submit can be processed by just calling |
14 Make sure the files you submit can be processed by just calling |
15 \texttt{scala <<filename.scala>>}.\bigskip |
15 \texttt{scala <<filename.scala>>}.\bigskip |
17 \noindent |
17 \noindent |
18 \textbf{Important:} Do not use any mutable data structures in your |
18 \textbf{Important:} Do not use any mutable data structures in your |
19 submissions! They are not needed. This means you cannot use |
19 submissions! They are not needed. This means you cannot use |
20 \texttt{ListBuffer}s, for example. Do not use \texttt{return} in your |
20 \texttt{ListBuffer}s, for example. Do not use \texttt{return} in your |
21 code! It has a different meaning in Scala, than in Java. |
21 code! It has a different meaning in Scala, than in Java. |
22 Do not use \texttt{var}! This declares a mutable variable. Make sure the |
22 Do not use \texttt{var}! This declares a mutable variable. ??? Make sure the |
23 functions you submit are defined on the ``top-level'' of Scala, not |
23 functions you submit are defined on the ``top-level'' of Scala, not |
24 inside a class or object. Also note that the running time of |
24 inside a class or object. Also note that the running time of |
25 each part will be restricted to a maximum of 360 seconds on my laptop. |
25 each part will be restricted to a maximum of 360 seconds on my laptop. |
26 |
26 |
27 |
27 |