--- author: Florian Fischer lang: de theme: metropolis aspectratio: 169 header-includes: | \let\tightlist\relax --- ## {.standout} Herzlich Willkommen! Du kannst dich schon anmelden \texttt{v[orname].nachname} und den Bildschirm ausschalten. ## \faIcon{chalkboard-teacher} Wiederholung - Datentyp \begin{itemize} \item<1-> Definiere den Begriff \boldred{Datentyp} und nenne Unterschiede zum \textbf{Zellformat}. \item<3-> Gib mindestens 4 \textbf{Datentypen} an. \item<5-> Gib zu den jeweiligen Datentypen gültige \boldred{Rechenoperation} (+,-,*,/) an. \end{itemize} `\only<2>{`{=latex} Der Datentyp legt fest, welche **Werte** angenommen werden können und welche **Operationen** möglich sind. `}`{=latex} \only<4>{ \begin{center} \begin{tabular}{l | l} Datentyp& Beispiel \\ \hline Text& Hallo \\ Datum& 20.09.2024 \\ Zahl& 1312,00 \\ Uhrzeit& 13:30 \\ \end{tabular} \end{center} } \only<6->{ \begin{center} \begin{tabular}{l | l | l} Datentyp & Beispiel & Sinnvolle Operationen\\ \hline Text& Hallo & \only<7->{\emph{keine}} \\ Datum& 20.09.2024 & \only<8->{+, -} \\ Zahl& 1312,00 & \only<9->{+,-,*,/} \\ Uhrzeit& 13:30 & \only<10->{+, -} \\ \end{tabular} \end{center} } ## \faIcon{chalkboard-teacher} Wiederholung - Zelle ### Nenne wichtige Attribute der \textcolor{red}{\textbf{Klasse ZELLE}}. \begin{tikzpicture} \begin{class}[text width=5cm]{ZELLE}{0,0} \only<1> { \attribute{\phantom{Inhalt}} } \only<2-> { \attribute{Inhalt} } \only<1-2> { \attribute{\phantom{Datentyp}} } \only<3-> { \attribute{Datentyp} } \only<1-3> { \attribute{\phantom{Formatierung}} } \only<4-> { \attribute{Formatierung} } \end{class} \begin{object}[text width=5cm]{A1: Zelle}{7,0} \only<1-5> { \attribute{\phantom{Inhalt : "04.10.2024"}} } \only<6-> { \attribute{Inhalt : "04.10.2024"} } \only<1-4> { \attribute{\phantom{Datentyp : Datum}} } \only<5-> { \attribute{Datentyp : Datum} } \only<1-6> { \attribute{\phantom{Formatierung : "TT.MM.YY"}} } \only<7-> { \attribute{Formatierung : "TT.MM.YY"} } \end{object} \only<-4>{ \node[draw, opacity=0] at (7, -3) {20.10.25}; } \only<4->{ \node[draw] at (7, -3) {20.10.25}; } \end{tikzpicture} ## ![](img/icecream.png){ height=1cm } Eiscafe Arthur, Anna, Ahmed und Amelie jobben im selben Eiscafé. Sie möchten die Eigentümerin Frau Kremig davon überzeugen, den Arbeitslohn in Zukunft mit einem Tabellenkalkulationsprogramm zu berechnen. ![](img/salary_formular.png){.center height=50%} ## \faIcon{desktop} Arbeitsauftrag - 5 min ![](img/salary_formular.png){.center height=40%} 1. Übertrage die Tabelle und die Formel aus der Abbildung in ein Rechenblatt (die Formatierung musst du nicht übernehmen). 2. Berechne Annas Lohn ebenfalls mithilfe einer geeigneten Formel in Zelle D5. Berechne anschließend ebenso Ahmeds und Amelie Lohn. 3. Begründe warum das Vorgehen aus 2) mühsam ist. ## Formeln kopieren und wiederverwenden \begin{tikzpicture} \node {\includegraphics[keepaspectratio, width=\textwidth]{img/salary_copy.png}}; \only<1> { \node[rectangle, line width=1pt, minimum height=2.25cm, minimum width=2.5cm] (r) at (5.5, -1.25) {}; } \only<1,2> { \node[align=left, xshift=-2cm, yshift=-1cm, below of=r] {\phantom{\textcolor{blue}{\Large Die Zellbezüge sind unterschiedlich,}} \\ \phantom{\textcolor{blue}{\Large die Formelstruktur aber komplett gleich!}}}; } \only<2-> { \node[rectangle, line width=1pt, draw=blue, minimum height=2.25cm, minimum width=2.5cm] (r) at (5.5, -1.25) {}; } \only<3> { \node[align=left, xshift=-2cm, yshift=-1cm, below of=r] {\textcolor{blue}{\Large Die Zellbezüge sind unterschiedlich,} \\ \textcolor{blue}{\Large die Formelstruktur aber komplett gleich!}}; } \end{tikzpicture} ## ![](img/icecream.png){ height=1cm } Eiscafe Frau Kremig ist überzeugt. Allerdings weist sie darauf hin, dass der Stundenlohn für alle Angestellten gleich ist. Daher möchte sie diesen nur in einer Zelle erfassen: \begin{tikzpicture} \only<1> { \node {\includegraphics[width=0.9\textwidth,keepaspectratio]{img/salary_formular.png}}; } \only<2> { \node {\includegraphics[width=0.9\textwidth,keepaspectratio]{img/salary_single_truth.png}}; } \end{tikzpicture} ## \faIcon{desktop} Arbeitsauftrag - 5 min ![](img/salary_single_truth.png){ .center width=80% } 1. Verändere deine Tabelle gemäß Frau Kremigs Vorschlag. 2. Gib anschließend eine neue Formel zur Berechnung für Arthurs Arbeitslohn in die zugehörige Zellen ein. Kopiere die Formel anschließend in die anderen Zellen darunter (d.h. zur Berechnung des Arbeitslohns von Anna, Ahmed und Amelie). Was fällt dir auf? ## Formeln kopieren und wiederverwenden \resizebox{\textwidth}{!}{ \begin{tikzpicture} \node (p) {\includegraphics[keepaspectratio, width=\textwidth]{img/salary_broken_copy.png}}; \pause \draw[line width = 1pt, blue, ->] (1.5, -0.4) -- (5.5, -0.4); \pause \draw[line width = 1pt, red, ->] (1.5, -0.85) -- (5.5, -0.85); \node[xshift=1] at (6, -0.85){\textcolor{red}{\faIcon{bolt}}}; \pause \draw[line width = 1pt, red, ->] (1.5, -1.3) -- (5.5, -1.3); \node[xshift=1] at (6, -1.3){\textcolor{red}{\faIcon{bolt}}}; \pause \draw[line width = 1pt, red, ->] (1.5, -1.75) -- (5.5, -1.75); \node[xshift=1] at (6, -1.75){\textcolor{red}{\faIcon{bolt}}}; \only<1-5> { \node[below of=p, yshift=-2cm] {\phantom{\Large \textcolor{red}{\textbf{Unerwünschte Anpassung: Der Bezug der Zeile ändert sich!}}}}; } \only<6> { \node[below of=p, yshift=-2cm] {\Large \textcolor{red}{\textbf{Unerwünschte Anpassung: Der Bezug der Zeile ändert sich!}}}; } \end{tikzpicture} } ## Formeln kopieren und wiederverwenden Um eine automatische Anpassung beim Kopieren zu verhindern, setzt man ein \textcolor{red}{\textbf{Dollarzeichen \$}} vor den Adressteil, der sich nicht verändern soll. \begin{tikzpicture} \node {\includegraphics[keepaspectratio, width=\textwidth]{img/salary_fixed_copy.png}}; \pause \draw[line width = 1pt, black!30!green, ->] (1.5, -0.4) -- (5.5, -0.4); \pause \draw[line width = 1pt, black!30!green, ->] (1.5, -0.85) -- (5.8, -0.85) -- (5.8, -0.6); \pause \draw[line width = 1pt, black!30!green, ->] (1.5, -1.3) -- (6.1, -1.3) -- (6.1, -0.6); \pause \draw[line width = 1pt, black!30!green, ->] (1.5, -1.75) -- (6.4, -1.75) -- (6.4, -0.6); \only<1-5> { \node[below of=p, yshift=-2cm] {\phantom{\Large \textcolor{black!30!green}{\textbf{Anpassung verhindert: Der Bezug zu Zeile 4 bleibt fest!}}}}; } \only<6> { \node[below of=p, yshift=-2cm] {\Large \textcolor{black!30!green}{\textbf{Anpassung verhindert: Der Bezug zu Zeile 4 bleibt fest!}}}; } \end{tikzpicture} ## \faIcon{desktop} Arbeitsauftrag: Zellbezüge anwenden - 15 min **Kopiere** das Dokument `Zellbezuege.ods` (aus ByCS Drive) in dein eigenes Laufwerk. Bearbeite anschließend die ersten **3** Rechenblätter des Dokuments. \vspace{2cm} ![](img/rechenblaetter.png) \begin{tikzpicture}[overlay, remember picture] \node[draw=red, line width=1pt, minimum width=4.2cm, minimum height=0.5cm, anchor=west, xshift=3.9cm, yshift=2.7cm] at (current page.south west) {}; \end{tikzpicture} ## \faIcon{pencil-alt} Relative und absolute Zellbezüge Bei \textcolor{red}{\textbf{relativen Zellbezügen}} werden die Zelladressen beim Kopieren einer Formel automatisch angepasst (\textcolor{red}{\textbf{relative Adressierung}}). Zur Verhinderung dieser automatischen Anpassung wird ein **$-Zeichen** (Dollarzeichen) vor jeden Adressteil gesetzt, der sich nicht verändern soll (\textcolor{red}{\textbf{absolute Adressierung}}). ::: {.columns align=center} :::: {.column width=30%} \pause ![](img/dollar.png) :::: :::: {.column width=70%} \pause \begin{tabular}{| l | l |} \hline \Large \textbf{Relative} Adressierung & \Large A1 \\ \hline \Large \textbf{Absolute} \textcolor{red}{Zeilen}adressierung & \Large A\textbf{\$}1 \\ \hline \Large \textbf{Absolute} \textcolor{red}{Spalten}adressierung & \Large \textbf{\$}A1 \\ \hline \Large \textbf{Absolute} Adressierung & \Large \textbf{\$}A\textbf{\$}1 \\ \hline \end{tabular} :::: ::: ## \faIcon{desktop} Arbeitsauftrag: Zellbezüge anwenden 2 - 15 min Bearbeite die letzten **4** Rechenblätter des Dokuments. \vspace{1cm} ![](img/rechenblaetter.png) \begin{tikzpicture}[overlay, remember picture] \node[draw=red, line width=1pt, minimum width=7.2cm, minimum height=0.5cm, anchor=west, xshift=8cm, yshift=4.7cm] at (current page.south west) {}; \end{tikzpicture} \begin{tcolorbox}[colframe=orange] \textbf{\faIcon{crown} King of the Zellbezüge} \\[0.1cm] Wer als erster fertig, erhält eine Belohnung \faIcon{gift}. \end{tcolorbox} ## \faIcon{desktop} Arbeitsauftrag ### \underline{Kalender} Erstelle für das gesamte aktuelle Schuljahr einen ansprechenden Kalender. Kennzeichne Wochenenden, Feiertage und Schulferien farbig. **Nutze Kopieren und Einfügen geschickt!**