equal
deleted
inserted
replaced
13 %% change Console to scala.io.StdIn.readByte() |
13 %% change Console to scala.io.StdIn.readByte() |
14 |
14 |
15 |
15 |
16 \begin{document} |
16 \begin{document} |
17 |
17 |
18 \section*{Part 10 (Scala)} |
18 \section*{Part 10 (Scala, 10 Marks)} |
19 |
19 |
20 \mbox{}\hfill\textit{``If there's one feature that makes Scala, `Scala',}\\ |
20 \mbox{}\hfill\textit{``If there's one feature that makes Scala, `Scala',}\\ |
21 \mbox{}\hfill\textit{ I would pick implicits.''}\smallskip\\ |
21 \mbox{}\hfill\textit{ I would pick implicits.''}\smallskip\\ |
22 \mbox{}\hfill\textit{ --- Martin Odersky (creator of the Scala language)}\bigskip\bigskip |
22 \mbox{}\hfill\textit{ --- Martin Odersky (creator of the Scala language)}\bigskip\bigskip |
23 |
23 |
25 \noindent |
25 \noindent |
26 This part is about a small (esoteric) programming language called |
26 This part is about a small (esoteric) programming language called |
27 brainf***. Actually, we will implement an interpreter for our own version |
27 brainf***. Actually, we will implement an interpreter for our own version |
28 of this language called brainf*ck++.\bigskip |
28 of this language called brainf*ck++.\bigskip |
29 |
29 |
30 \IMPORTANT{This part is worth 10\% and you need to submit it on \cwTEN{} at 5pm.} |
30 \IMPORTANT{This part is worth 10\% and you need to submit it on \cwTEN{} at 5pm. |
|
31 Any 1\% you achieve counts as your ``weekly engagement''.} |
31 |
32 |
32 \noindent |
33 \noindent |
33 Also note that the running time of each part will be restricted to a |
34 Also note that the running time of each part will be restricted to a |
34 maximum of 30 seconds on my laptop. |
35 maximum of 30 seconds on my laptop. |
35 |
36 |