cws/cw01.tex
changeset 306 1877cc717291
parent 284 9a04eb6a2291
child 314 21b52310bd8b
--- a/cws/cw01.tex	Sat Nov 02 15:11:30 2019 +0000
+++ b/cws/cw01.tex	Sat Nov 02 19:07:19 2019 +0000
@@ -6,7 +6,7 @@
 
 \begin{document}
 
-\section*{Assignment 6 (Scala)}
+\section*{Part 6 (Scala)}
 
 \mbox{}\hfill\textit{``The most effective debugging tool is still careful thought,}\\
 \mbox{}\hfill\textit{coupled with judiciously placed print statements.''}\smallskip\\
@@ -14,7 +14,7 @@
 
  
 \noindent
-This assignment is about Scala. You are asked to implement two programs
+This part is about Scala. You are asked to implement two programs
 about list processing and recursion. The preliminary part (3\%) is due
 on \cwSIX{} at 4pm, and the core part on \cwSIXa{} at 4pm.  The core
 part is more advanced and might include material you have not yet seen
@@ -36,8 +36,8 @@
 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 any test cases
+In addition, the Scala coursework comes with a reference implementation
+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 collatz.jar} and then query any
 function from the template file. Say you want to find out what
@@ -59,14 +59,14 @@
 \subsection*{Hints}
 
 \noindent
-\textbf{For Part 1:} useful math operators: \texttt{\%} for modulo; useful
+\textbf{For Preliminary Part:} useful math operators: \texttt{\%} for modulo; useful
 functions: \mbox{\texttt{(1\,to\,10)}} for ranges, \texttt{.toInt},
 \texttt{.toList} for conversions, \texttt{List(...).max} for the
 maximum of a list, \texttt{List(...).indexOf(...)} for the first index of
 a value in a list.\bigskip
 
 \noindent
-\textbf{For Part 2:} useful string functions:
+\textbf{For Core Part:} useful string functions:
 \texttt{.startsWith(...)} for checking whether a string has a given
 prefix, \texttt{\_ ++ \_} for concatenating two strings; useful option
 functions: \texttt{.flatten} flattens a list of options such that it
@@ -117,7 +117,7 @@
 0.\footnote{While it is relatively easy to test this conjecture with
   particular numbers, it is an interesting open problem to
   \emph{prove} that the conjecture is true for \emph{all} numbers ($>
-  0$). Paul Erd\"o{}s, a famous mathematician you might have hard
+  0$). Paul Erd\"o{}s, a famous mathematician you might have heard
   about, said about this conjecture: ``Mathematics may not [yet] be ready
   for such problems.'' and also offered a \$500 cash prize for its
   solution. Jeffrey Lagarias, another mathematician, claimed that
@@ -188,7 +188,7 @@
   a year, we invest our money in equal amounts in each of these
   stocks.  For example if we have \$100 and there are four stocks that
   are traded in our portfolio, we buy \$25 worth of stocks
-  from each. Be careful to also test cases where you trade with 3 stocks, for example. 
+  from each. (Be careful to also test cases where you trade with 3 stocks.) 
 \item Next year in January, we look at how our stocks did, liquidate
   everything, and re-invest our (hopefully) increased money in again
   the stocks from our portfolio (there might be more stocks available,
@@ -203,7 +203,7 @@
 data for such back-of-the-envelope calculations was freely available
 online. Unfortunately nowadays this kind of data is more difficult to
 obtain, unless you are prepared to pay extortionate prices or be
-severely rate-limited.  Therefore this assignment comes with a number
+severely rate-limited.  Therefore this part comes with a number
 of files containing CSV-lists with the historical stock prices for the
 companies in our portfolios. Use these files for the following
 tasks.\bigskip