cws/disclaimer.sty
author Christian Urban <christian.urban@kcl.ac.uk>
Sat, 31 Oct 2020 16:47:46 +0000
changeset 345 69b39df6ad4d
parent 335 9476aee44eed
child 347 0b727d1a8184
permissions -rw-r--r--
updated
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
335
9476aee44eed updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 278
diff changeset
     1
\newcommand{\IMPORTANT}[1]{%
9476aee44eed updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 278
diff changeset
     2
\subsubsection*{Important\alert}
166
284a0f869e48 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     3
284a0f869e48 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     4
\begin{itemize}
335
9476aee44eed updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 278
diff changeset
     5
\item #1  
166
284a0f869e48 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     6
\item Make sure the files you submit can be processed by just calling\\
284a0f869e48 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     7
  \mbox{\texttt{scala <<filename.scala>>}} on the commandline.\footnote{All
284a0f869e48 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     8
    major OSes, including Windows, have a commandline. So there is no
284a0f869e48 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     9
    good reason to not download Scala, install it and run it on your
284a0f869e48 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    10
    own computer. Just do it!} Use the
284a0f869e48 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    11
  template files provided and do not make any changes to arguments of
284a0f869e48 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    12
  functions or to any types. You are free to implement any auxiliary
284a0f869e48 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    13
  function you might need.
284a0f869e48 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    14
212
c86e40fb3b21 updated
Christian Urban <urbanc@in.tum.de>
parents: 199
diff changeset
    15
\item \textbf{Do not leave any test cases running in your code because this might slow
237
ecda54182ae5 updated
Christian Urban <urbanc@in.tum.de>
parents: 212
diff changeset
    16
  down your program!} Comment out test cases before submission, otherwise you
199
2e13dedd922e updated
Christian Urban <urbanc@in.tum.de>
parents: 174
diff changeset
    17
  might hit a time-out.
2e13dedd922e updated
Christian Urban <urbanc@in.tum.de>
parents: 174
diff changeset
    18
166
284a0f869e48 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    19
\item Do not use any mutable data structures in your
284a0f869e48 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    20
submissions! They are not needed. This means you cannot create new 
284a0f869e48 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    21
\texttt{Array}s or \texttt{ListBuffer}s, for example. 
284a0f869e48 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    22
284a0f869e48 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    23
\item Do not use \texttt{return} in your code! It has a different
278
57b5bba67467 updated
Christian Urban <urbanc@in.tum.de>
parents: 257
diff changeset
    24
  meaning in Scala than in Java. It changes the meaning of your program,
57b5bba67467 updated
Christian Urban <urbanc@in.tum.de>
parents: 257
diff changeset
    25
  and you should never use it.
166
284a0f869e48 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    26
284a0f869e48 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    27
\item Do not use \texttt{var}! This declares a mutable variable. Only
284a0f869e48 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    28
  use \texttt{val}!
284a0f869e48 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    29
284a0f869e48 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    30
\item Do not use any parallel collections! No \texttt{.par} therefore!
284a0f869e48 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    31
  Our testing and marking infrastructure is not set up for it.
284a0f869e48 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    32
\end{itemize}
284a0f869e48 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    33
}
284a0f869e48 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    34
174
dd7acea3f9ec updated
Christian Urban <urbanc@in.tum.de>
parents: 169
diff changeset
    35
\newcommand{\IMPORTANTEXAM}{%
dd7acea3f9ec updated
Christian Urban <urbanc@in.tum.de>
parents: 169
diff changeset
    36
\noindent
dd7acea3f9ec updated
Christian Urban <urbanc@in.tum.de>
parents: 169
diff changeset
    37
\subsubsection*{Important}
dd7acea3f9ec updated
Christian Urban <urbanc@in.tum.de>
parents: 169
diff changeset
    38
dd7acea3f9ec updated
Christian Urban <urbanc@in.tum.de>
parents: 169
diff changeset
    39
\begin{itemize}
dd7acea3f9ec updated
Christian Urban <urbanc@in.tum.de>
parents: 169
diff changeset
    40
\item Make sure the files you submit can be processed by just calling\\
dd7acea3f9ec updated
Christian Urban <urbanc@in.tum.de>
parents: 169
diff changeset
    41
  \mbox{\texttt{scala <<filename.scala>>}} on the commandline. Use the
dd7acea3f9ec updated
Christian Urban <urbanc@in.tum.de>
parents: 169
diff changeset
    42
  template file provided and do not make any changes to arguments of
dd7acea3f9ec updated
Christian Urban <urbanc@in.tum.de>
parents: 169
diff changeset
    43
  functions or to any types. You are free to implement any auxiliary
dd7acea3f9ec updated
Christian Urban <urbanc@in.tum.de>
parents: 169
diff changeset
    44
  function you might need.
dd7acea3f9ec updated
Christian Urban <urbanc@in.tum.de>
parents: 169
diff changeset
    45
dd7acea3f9ec updated
Christian Urban <urbanc@in.tum.de>
parents: 169
diff changeset
    46
\item Do not use any mutable data structures in your
dd7acea3f9ec updated
Christian Urban <urbanc@in.tum.de>
parents: 169
diff changeset
    47
submission! They are not needed. This means you cannot create new 
dd7acea3f9ec updated
Christian Urban <urbanc@in.tum.de>
parents: 169
diff changeset
    48
\texttt{Array}s or \texttt{ListBuffer}s, for example. 
dd7acea3f9ec updated
Christian Urban <urbanc@in.tum.de>
parents: 169
diff changeset
    49
dd7acea3f9ec updated
Christian Urban <urbanc@in.tum.de>
parents: 169
diff changeset
    50
\item Do not use \texttt{return} in your code! It has a different
dd7acea3f9ec updated
Christian Urban <urbanc@in.tum.de>
parents: 169
diff changeset
    51
  meaning in Scala than in Java.
dd7acea3f9ec updated
Christian Urban <urbanc@in.tum.de>
parents: 169
diff changeset
    52
dd7acea3f9ec updated
Christian Urban <urbanc@in.tum.de>
parents: 169
diff changeset
    53
\item Do not use \texttt{var}! This declares a mutable variable. Only
dd7acea3f9ec updated
Christian Urban <urbanc@in.tum.de>
parents: 169
diff changeset
    54
  use \texttt{val}!
dd7acea3f9ec updated
Christian Urban <urbanc@in.tum.de>
parents: 169
diff changeset
    55
dd7acea3f9ec updated
Christian Urban <urbanc@in.tum.de>
parents: 169
diff changeset
    56
\item Do not use any parallel collections! No \texttt{.par} therefore!
dd7acea3f9ec updated
Christian Urban <urbanc@in.tum.de>
parents: 169
diff changeset
    57
\end{itemize}
dd7acea3f9ec updated
Christian Urban <urbanc@in.tum.de>
parents: 169
diff changeset
    58
}
dd7acea3f9ec updated
Christian Urban <urbanc@in.tum.de>
parents: 169
diff changeset
    59
166
284a0f869e48 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    60
284a0f869e48 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    61
\newcommand{\DISCLAIMER}{%
335
9476aee44eed updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 278
diff changeset
    62
\subsubsection*{Disclaimer\alert}
166
284a0f869e48 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    63
284a0f869e48 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    64
It should be understood that the work you submit represents
284a0f869e48 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    65
your \textbf{own} effort! You have not copied from anyone else. An
284a0f869e48 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    66
exception is the Scala code I showed during the lectures or
284a0f869e48 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    67
uploaded to KEATS, which you can freely use.\bigskip
174
dd7acea3f9ec updated
Christian Urban <urbanc@in.tum.de>
parents: 169
diff changeset
    68
}
dd7acea3f9ec updated
Christian Urban <urbanc@in.tum.de>
parents: 169
diff changeset
    69
dd7acea3f9ec updated
Christian Urban <urbanc@in.tum.de>
parents: 169
diff changeset
    70
\newcommand{\DISCLAIMEREXAM}{%
dd7acea3f9ec updated
Christian Urban <urbanc@in.tum.de>
parents: 169
diff changeset
    71
\subsubsection*{Disclaimer}
dd7acea3f9ec updated
Christian Urban <urbanc@in.tum.de>
parents: 169
diff changeset
    72
dd7acea3f9ec updated
Christian Urban <urbanc@in.tum.de>
parents: 169
diff changeset
    73
It should be understood that the work you submit represents
dd7acea3f9ec updated
Christian Urban <urbanc@in.tum.de>
parents: 169
diff changeset
    74
your \textbf{own} effort! You have not copied from anyone else. An
dd7acea3f9ec updated
Christian Urban <urbanc@in.tum.de>
parents: 169
diff changeset
    75
exception is the Scala code I showed during the lectures or
dd7acea3f9ec updated
Christian Urban <urbanc@in.tum.de>
parents: 169
diff changeset
    76
uploaded to KEATS, which you can freely use.\medskip
dd7acea3f9ec updated
Christian Urban <urbanc@in.tum.de>
parents: 169
diff changeset
    77
dd7acea3f9ec updated
Christian Urban <urbanc@in.tum.de>
parents: 169
diff changeset
    78
\noindent
dd7acea3f9ec updated
Christian Urban <urbanc@in.tum.de>
parents: 169
diff changeset
    79
During the exam you may \textbf{not} communicate with other people: no email,
dd7acea3f9ec updated
Christian Urban <urbanc@in.tum.de>
parents: 169
diff changeset
    80
instant messaging, discussion forums, use of mobile phones, etc.
dd7acea3f9ec updated
Christian Urban <urbanc@in.tum.de>
parents: 169
diff changeset
    81
\bigskip
166
284a0f869e48 updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    82
}