\documentclass[14pt]{classPres}
\usepackage{tkz-fct}
\usepackage{listings}

\author{}
\title{}
\date{}

\begin{document}
\begin{frame}{Questions flash}
    \begin{center}
        \vfill
        2nd
        \vfill
        30 secondes par calcul
        \vfill
        {\Large Calculatrice autorisée}
        \vfill
        \tiny \jobname
    \end{center}
\end{frame}

\begin{frame}[fragile]{Calcul 1}
    % Proba - ensemble
    Contenu d'un sac de bonbon.
    \begin{center}
        \begin{tabular}{|c|*{3}{c|}}
            \hline
            & Sucré & Salé & Total \\
            \hline
            Fondant & 45 & 5 & 50 \\
            \hline 
            Croquant & 78 & 22 & 100 \\
            \hline
            total & 123 & 27 & 150 \\
            \hline
        \end{tabular}
    \end{center}
    $A = \left\{\mbox{ Sucré }\right\}$
    \hfill
    $B = \left\{\mbox{ Fondant }\right\}$
    \vfill
    Calculer $P(A \cup B)$
    \vfill
\end{frame}

\begin{frame}{Calcul 2}
    % Stats
    \begin{center}
        \begin{tabular}{|c|*{4}{p{1.5cm}|}}
            \hline
            Valeurs & 2 & 4 & 8 & 16 \\
            \hline
            Effectif & 10 & 6 & 2 & 20 \\
            \hline
        \end{tabular}
    \end{center}
    \vfill
    Calculer une valeur du troisième quartile.
    \vfill
\end{frame}

\begin{frame}[fragile]{Calcul 3}
    % Géométrie repérée
    \begin{center}
        \begin{tikzpicture}
            \repere{-5}{5}{-1}{5} 
            \draw (4, 1)  node {x} node [above right] {$A$};
            \draw (4, 3)  node {x} node [above right] {$B$};
        \end{tikzpicture}
    \end{center}
    Calculer le distance $AB$.
\end{frame}

\begin{frame}[fragile]{Calcul 4}
    % Programmation
    \begin{center}
        \begin{lstlisting}[language=Python, basicstyle=\small, frame=]
poids = input("Quantité?")
poids = int(poids)
print("Vous voulez", poids, "de pommes")
print("Cela coûte", poids*5)
        \end{lstlisting}
    \end{center}
    \vfill
    Que fait le programme?
    \vfill
\end{frame}

\begin{frame}{Fin}
    \begin{center}
        On retourne son papier.
    \end{center}
\end{frame}


\end{document}