diff --git a/docs/programmers/tutorials/workflows/part04.pdf b/docs/programmers/tutorials/workflows/part04.pdf index 29b958c1..afaf7902 100644 Binary files a/docs/programmers/tutorials/workflows/part04.pdf and b/docs/programmers/tutorials/workflows/part04.pdf differ diff --git a/docs/programmers/tutorials/workflows/part04.tex b/docs/programmers/tutorials/workflows/part04.tex index 069a2226..0724af9d 100644 --- a/docs/programmers/tutorials/workflows/part04.tex +++ b/docs/programmers/tutorials/workflows/part04.tex @@ -341,16 +341,25 @@ \part{Termination status} \begin{frame} \begin{exercise*}[4.B] - Write a \texttt{TermStatusApp} application, which is like a - generic \texttt{Application} class with the addition that upon - termination it prints: + Modify the grayscaling script \texttt{ex2c} (or the code it + depends upon) so that, when a \texttt{GrayscaleApp} task has + terminated execution, it prints: \begin{itemize} \item whether the program has been killed by a signal, and the signal number; \item whether the program has terminated by exiting, and the exit code. \end{itemize} + \end{exercise*} +\end{frame} + - Verify that it works by plugging the class into the ``grayscale'' - session-based script. +\begin{frame} + \begin{exercise*}[4.B+] \emph{(Bonus points)} Abstract the verbose + \texttt{terminated} method from exercise 3.B into an application + class \texttt{TermStatusApp}. + + \+ + Use Python class inheritance to add the \texttt{TermStatusApp} + functionality into \texttt{GrayscaleApp}. \end{exercise*} \end{frame}