diff -r e745f6e1ebf6 -r 1877cc717291 cws/cw02.tex --- a/cws/cw02.tex Sat Nov 02 15:11:30 2019 +0000 +++ b/cws/cw02.tex Sat Nov 02 19:07:19 2019 +0000 @@ -7,7 +7,7 @@ \begin{document} -\section*{Coursework 7 (Scala)} +\section*{Part 7 (Scala)} \mbox{}\hfill\textit{``What one programmer can do in one month,}\\ \mbox{}\hfill\textit{two programmers can do in two months.''}\smallskip\\ @@ -31,14 +31,14 @@ \subsection*{Reference Implementation} -Like the C++ assignments, the Scala assignments will work like this: you +Like the C++ part, the Scala part works like this: you push your files to GitHub and receive (after sometimes a long delay) some -automated feedback. In the end we take a snapshot of the submitted files and +automated feedback. In the end we will take a snapshot of the submitted files and apply an automated marking script to them.\medskip \noindent -In addition, the Scala assignments come with a reference -implementation in form of a \texttt{jar}-file. This allows you to run +In addition, the Scala part comes with reference +implementations in form of \texttt{jar}-files. This allows you to run any test cases on your own computer. For example you can call Scala on the command line with the option \texttt{-cp docdiff.jar} and then query any function from the template file. Say you want to find out @@ -58,7 +58,7 @@ \subsection*{Hints} \noindent -\textbf{For Part 1:} useful operations involving regular +\textbf{For Preliminary Part:} useful operations involving regular expressions: \[\texttt{reg.findAllIn(s).toList}\] \noindent finds all @@ -70,7 +70,7 @@ integers, \texttt{.max} calculates the maximum of a list.\bigskip \noindent -\textbf{For Part 2:} use \texttt{.split(",").toList} for splitting +\textbf{For Core Part:} use \texttt{.split(",").toList} for splitting strings according to commas (similarly $\backslash$\texttt{n}), \texttt{.getOrElse(..,..)} allows to query a Map, but also gives a default value if the Map is not defined, a Map can be `updated' by