# HG changeset patch # User Christian Urban # Date 1478654288 0 # Node ID 07860dd35c2b598a7d2b8c6083cc25511412b807 # Parent fa18976cf4cf0d07343dba64b199792c66a4c617 updated diff -r fa18976cf4cf -r 07860dd35c2b cws/cw01.pdf Binary file cws/cw01.pdf has changed diff -r fa18976cf4cf -r 07860dd35c2b cws/cw01.tex --- a/cws/cw01.tex Wed Nov 09 01:02:41 2016 +0000 +++ b/cws/cw01.tex Wed Nov 09 01:18:08 2016 +0000 @@ -79,7 +79,7 @@ \item[(2)] Write a second function that takes an upper bound as argument and calculates the steps for all numbers in the range from - 1 upto this bound. It returns the maximum number of steps and the + 1 up to this bound. It returns the maximum number of steps and the corresponding number that needs that many steps. The first component of the pair is the number of steps and the second is the corresponding number. \hfill[1 Mark] @@ -133,7 +133,7 @@ \noindent where \texttt{GOOG} stands for Google's stock market symbol then you will receive a CSV-list of the daily stock prices since -Google was listed. You can also try this with other strock market +Google was listed. You can also try this with other stock market symbols, for instance AAPL, MSFT, IBM, FB, YHOO, AMZN, BIDU and so on. @@ -184,11 +184,11 @@ A purely fictional character named Mr T.~Drump inherited in 1978 approximately 200 Million Dollar from his father. Mr Drump prides -himself to be a brilliant bussiness man because nowadays it is -estimated he is 3 Billon Dollar worth (one is not sure, of course, +himself to be a brilliant business man because nowadays it is +estimated he is 3 Billion Dollar worth (one is not sure, of course, because Mr Drump refuses to make his tax records public). -The question about Mr Drump's bussiness acumen remains. So let's do a +The question about Mr Drump's business acumen remains. So 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: