cws/cw05.tex
changeset 268 e43f7e92ba26
parent 251 3dd550b9b0e3
child 278 0c2481cd8b1c
--- a/cws/cw05.tex	Wed Jul 24 15:18:44 2019 +0100
+++ b/cws/cw05.tex	Thu Aug 01 09:48:34 2019 +0100
@@ -27,15 +27,17 @@
 maximum of 30 seconds on my laptop.
 
 \DISCLAIMER{}
+\newpage
 
 \subsection*{Reference Implementation}
 
-As usual, this Scala assignment comes with a reference implementation in form of
-two \texttt{jar}-files. You can download them from KEATS. They allow 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 bf.jar} and then query any function from the
-\texttt{bf.scala} template file. You have to
-prefix the calls with \texttt{CW10a} and \texttt{CW10b}, respectively. For example
+As usual, this Scala assignment comes with a reference implementation in
+form of two \texttt{jar}-files. You can download them from KEATS. They
+allow 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 bf.jar}
+and then query any function from the \texttt{bf.scala} template file.
+You have to prefix the calls with \texttt{CW10a} and \texttt{CW10b},
+respectively. For example
 
 
 \begin{lstlisting}[language={},xleftmargin=1mm,numbers=none,basicstyle=\ttfamily\small]
@@ -76,7 +78,7 @@
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 \end{lstlisting}%$
 
-
+\newpage
 
 \subsection*{Part 1 (6 Marks)}
 
@@ -106,7 +108,7 @@
 
 \begin{center}
 \url{https://www.microsoft.com/en-us/p/brainf-ck/9nblgggzhvq5}
-\end{center}  
+\end{center}  \bigskip
 
 
 \noindent
@@ -155,7 +157,7 @@
   memory location \texttt{0}, and at \texttt{2} it stores \texttt{3}. The
   convention is that if we query the memory at a location that is
   \emph{not} defined in the \texttt{Map}, we return \texttt{0}. Write
-  a function, \texttt{sread}, that takes a memory (a \texttt{Map}) and
+  a `safe-read' function, \texttt{sread}, that takes a memory (a \texttt{Map}) and
   a memory pointer (an \texttt{Int}) as arguments, and `safely' reads the
   corresponding memory location. If the \texttt{Map} is not defined at
   the memory pointer, \texttt{sread} returns \texttt{0}.
@@ -325,7 +327,7 @@
   \end{figure}
 \end{itemize}\bigskip  
 
-\newpage
+%%\newpage
 
 \subsection*{Part 2 (4 Marks)}