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