cws/disclaimer.sty
author Christian Urban <christian.urban@kcl.ac.uk>
Wed, 01 Nov 2023 15:01:32 +0000
changeset 471 135bf034ac30
parent 470 86a456f8cb92
child 474 b528d1d3d3c3
permissions -rw-r--r--
updated

\newcommand{\IMPORTANT}[1]{%
\subsubsection*{Important\alert}

\begin{itemize}
\item #1  
\item Make sure the files you submit can be processed by just calling\\
  \mbox{\texttt{scala-cli <<filename.scala>>}} on the command line.\footnote{All
    major OSes, including Windows, have a command line. So there is no
    good reason to not download scala-cli, install it and run it on your
    own computer. Just do it!} Use the
  template files provided and do not make any changes to arguments of
  functions or to any types. You are free to implement any auxiliary
  function you might need.

\item \textbf{Do not leave any test cases running in your code because this might slow
  down your program!} Comment out test cases before submission, otherwise you
  might hit a time-out.

\item Do not use any mutable data structures in your
submissions! They are not needed. This means you cannot create new 
\texttt{Array}s or \texttt{ListBuffer}s, for example. 

\item Do not use \texttt{return} in your code! It has a different
  meaning in Scala than in Java. It changes the meaning of your program,
  and you should never use it.

\item Do not use \textbf{\texttt{var}}! This declares a mutable variable. Only
  use \texttt{val}!

\item Do not use any parallel collections! No \texttt{.par} therefore!
  Our testing and marking infrastructure is not set up for it.
\end{itemize}
}

\newcommand{\IMPORTANTNONE}[1]{%
\subsubsection*{Important\alert}

\begin{itemize}
\item Make sure the files you submit can be processed by just calling\\
  \mbox{\texttt{scala-cli <<filename.scala>>}} on the command line.\footnote{All
    major OSes, including Windows, have a command line. So there is no
    good reason to not download scala-cli, install it and run it on your
    own computer. Just do it!} Use the
  template files provided and do not make any changes to arguments of
  functions or to any types. You are free to implement any auxiliary
  function you might need.

\item \textbf{Do not leave any test cases running in your code because this might slow
  down your program!} Comment out test cases before submission, otherwise you
  might hit a time-out.

\item Do not use any mutable data structures in your
submissions! They are not needed. This means you cannot create new 
\texttt{Array}s or \texttt{ListBuffer}s, for example. 

\item Do not use \texttt{return} in your code! It has a different
  meaning in Scala than in Java. It changes the meaning of your program,
  and you should never use it.

\item Do not use \texttt{var}! This declares a mutable variable. Only
  use \texttt{val}!

\item Do not use any parallel collections! No \texttt{.par} therefore!
  Our testing and marking infrastructure is not set up for it.
\end{itemize}
}

\newcommand{\IMPORTANTEXAM}{%
\noindent
\subsubsection*{Important}

\begin{itemize}
\item Make sure the files you submit can be processed by just calling\\
  \mbox{\texttt{scala <<filename.scala>>}} on the command line. Use the
  template file provided and do not make any changes to arguments of
  functions or to any types. You are free to implement any auxiliary
  function you might need.

\item Do not use any mutable data structures in your
submission! They are not needed. This means you cannot create new 
\texttt{Array}s or \texttt{ListBuffer}s, for example. 

\item Do not use \texttt{return} in your code! It has a different
  meaning in Scala than in Java.

\item Do not use \texttt{var}! This declares a mutable variable. Only
  use \texttt{val}!

\item Do not use any parallel collections! No \texttt{.par} therefore!
\end{itemize}
}


\newcommand{\DISCLAIMER}{%
\subsubsection*{Disclaimer\alert}

It should be understood that the work you submit represents
your \textbf{own} effort! You have implemented the code entirely
on your own. You have not copied from anyone else.
Do not be tempted to ask Copilot for help or
do any other shenanigans like this! An exception is the Scala
code I showed during the lectures or uploaded to KEATS,
which you can freely use.\bigskip
}

\newcommand{\DISCLAIMEREXAM}{%
\subsubsection*{Disclaimer}

It should be understood that the work you submit represents
your \textbf{own} effort! You have implemented the code entirely
on your own. You have not copied from anyone else or any other
source. An
exception is the Scala code I showed during the lectures or
uploaded to KEATS, which you can freely use.\medskip

\noindent
During the exam you may \textbf{not} communicate with other people: no email,
instant messaging, discussion forums, use of mobile phones, etc.
\bigskip
}