equal
deleted
inserted
replaced
|
1 % !TEX program = xelatex |
1 \documentclass{article} |
2 \documentclass{article} |
2 \usepackage{../style} |
3 \usepackage{../style} |
3 \usepackage{disclaimer} |
4 \usepackage{disclaimer} |
4 \usepackage{../langs} |
5 \usepackage{../langs} |
5 |
6 |
7 |
8 |
8 \section*{Assignment 6 (Scala)} |
9 \section*{Assignment 6 (Scala)} |
9 |
10 |
10 \mbox{}\hfill\textit{``The most effective debugging tool is still careful thought,}\\ |
11 \mbox{}\hfill\textit{``The most effective debugging tool is still careful thought,}\\ |
11 \mbox{}\hfill\textit{coupled with judiciously placed print statements.''}\smallskip\\ |
12 \mbox{}\hfill\textit{coupled with judiciously placed print statements.''}\smallskip\\ |
12 \mbox{}\hfill\textit{ --- Brian W. Kernighan, in Unix for Beginners (1979)}\bigskip |
13 \mbox{}\hfill\textit{ --- Brian W. Kernighan, in Unix for Beginners (1979)}\medskip\bigskip |
13 |
14 |
14 |
15 |
15 \noindent |
16 \noindent |
16 This assignment is about Scala and worth 10\%. The basic |
17 This assignment is about Scala and worth 10\%. The basic |
17 part is due on \cwSIX{} at 11pm, and the main part on \cwSIXa{} |
18 part is due on \cwSIX{} at 11pm, and the main part on \cwSIXa{} |
192 \item Next year in January, we look at how our stocks did, liquidate |
193 \item Next year in January, we look at how our stocks did, liquidate |
193 everything, and re-invest our (hopefully) increased money in again |
194 everything, and re-invest our (hopefully) increased money in again |
194 the stocks from our portfolio (there might be more stocks available, |
195 the stocks from our portfolio (there might be more stocks available, |
195 if companies from our portfolio got listed in that year, or less if |
196 if companies from our portfolio got listed in that year, or less if |
196 some companies went bust or were de-listed). |
197 some companies went bust or were de-listed). |
197 \item We do this for 40 years until January 2019 and check what would |
198 \item We do this for 41 years until January 2019 and check what would |
198 have become out of our \$100. |
199 have become out of our \$100. |
199 \end{itemize} |
200 \end{itemize} |
200 |
201 |
201 \noindent |
202 \noindent |
202 Until Yahoo was bought by Altaba a few years ago, historical stock market |
203 Until Yahoo was bought by Altaba a few years ago, historical stock market |
337 his inheritance, a really dumb investment strategy would have done |
338 his inheritance, a really dumb investment strategy would have done |
338 equally well, if not much better.\medskip |
339 equally well, if not much better.\medskip |
339 |
340 |
340 \end{document} |
341 \end{document} |
341 |
342 |
|
343 |
|
344 %%%%%%% Historical Stuff |
342 \newpage |
345 \newpage |
343 |
346 |
344 This part is about web-scraping and list-processing in Scala. It uses |
347 This part is about web-scraping and list-processing in Scala. It uses |
345 online data about the per-capita alcohol consumption for each country |
348 online data about the per-capita alcohol consumption for each country |
346 (per year?), and a file containing the data about the population size of |
349 (per year?), and a file containing the data about the population size of |