diff --git a/Tutorials/T02b-A1Example/slides/A1Example.pdf b/Tutorials/T02b-A1Example/slides/A1Example.pdf index 4bb0b16de9a1e6416e98757cbf8b4987e3264b13..57d952564f29136fb0958e37c822908dfab65056 100644 Binary files a/Tutorials/T02b-A1Example/slides/A1Example.pdf and b/Tutorials/T02b-A1Example/slides/A1Example.pdf differ diff --git a/Tutorials/T02b-A1Example/slides/A1Example.tex b/Tutorials/T02b-A1Example/slides/A1Example.tex index 4a77b9800ec0d701b9ca0dadebfdea5abc93f1f5..c786dac7697456ae3b8b327da298849c6a00fc1a 100644 --- a/Tutorials/T02b-A1Example/slides/A1Example.tex +++ b/Tutorials/T02b-A1Example/slides/A1Example.tex @@ -8,7 +8,7 @@ %-------------------------------------------------------------------------- % ------------------------------------------------------------------------- -% Define Package Theme +% Define Package Theme %-------------------------------------------------------------------------- \usepackage{color} \usepackage[T1]{fontenc} @@ -32,6 +32,7 @@ \usepackage{marvosym} \usepackage{hyperref} \usepackage{tikz} +\usepackage{dirtytalk} \usetikzlibrary{shapes} \usetikzlibrary{arrows} @@ -85,7 +86,7 @@ \author{Henry Madej} \institute{Department of Computing and Software\\ McMaster University\\ } -\date{\today} +\date{\today} %-------------------------------------------------------------------------- @@ -109,10 +110,39 @@ McMaster University\\ } } \end{frame} +\begin{frame}[t] + \frametitle{Building CircleADT} + \begin{itemize} + \item{The first thing we have to do is read the specifications or + requirements if any are provided, in this case we are using the + specification from last years assignment 1, located in the gitlab repo under + Assignments/PreviousYears/2017/A1.} + \item{The specification provided is similar to the one provided to you in + this years assignment 1.} + \item{A constructor (CircleT) that takes three real numbers x, y and r as + input and assigns them to private instance variables. The x and y values + define the centre of the circle and r defines its radius.} + \end{itemize} +\end{frame} + +\begin{frame}[t] + \frametitle{Building CircleADT} + \centering + \includegraphics[width=0.5\textwidth]{circle1.png} + \begin{itemize} + \item{Python uses \_\_init\_\_ for the constructor of class objects} + \item{Instance variables are declared with self.variableName} + \item{Now we will add some getter methods according to specification} + \item{Three getters named xcoord, ycoord and radius that return the x and y + coordinates of the centre of the circle and the radius of the circle, + respectively.} + \end{itemize} +\end{frame} + \begin{frame}[t] \frametitle{Assignment Description} Original files available \href{https://gitlab.cas.mcmaster.ca/smiths/se2aa4_cs2me3/tree/master/Assignments/PreviousYears/2017/A1}{here} \end{frame} -\end{document} \ No newline at end of file +\end{document} diff --git a/Tutorials/T02b-A1Example/slides/circle1.png b/Tutorials/T02b-A1Example/slides/circle1.png new file mode 100644 index 0000000000000000000000000000000000000000..6c600f6ecd890e33190e4e53cef4e82968bf43c9 Binary files /dev/null and b/Tutorials/T02b-A1Example/slides/circle1.png differ