\documentclass[11pt]{article}
\usepackage[margin=1in]{geometry}
\setlength{\parindent}{0pt}
\setlength{\parskip}{4pt}

\usepackage[usenames,dvipsnames]{color}
\usepackage{listings}
\lstset{
    language=python,
    basicstyle=\tt\small,
    commentstyle=\color{Green},
    keywordstyle=\color{blue},
    stringstyle=\color{Orange},
    keepspaces=true,
    showstringspaces=false,
    emphstyle=\color{Maroon},
    emph={__name__}
}

\begin{document}

\large
CS 228, HW \#2 \hfill Due: 09/13/2013
\begin{center}
\textbf{Name:} your name here
\par
\textbf{e-ID:} your e-ID here
\end{center}
\hrule
\normalsize

\bigskip
Unless otherwise specified, the exercises listed below are from the textbook \emph{Discrete Mathematics and Its Applications, 7th Ed.}, by Kenneth H.~Rosen. \textbf{Please show all of your work and explain your reasoning; don't just give the final answer.} Submit your \texttt{hw2.tex} and \texttt{hw2.pdf} files via Canvas before 9:00 AM on the due date. As a reminder, late work will NOT be accepted.

\section*{Section 4.3 (page 272)}

\subsection*{Exercise 16, a--d}

\subsection*{Exercise 24, a--f}

\subsection*{Exercise 26, a--f}

\subsection*{Exercise 32}
\textit{Implement the Euclidean algorithm (as described on page 269) in Python. Then write statements that call your function to print the answers for parts a--f.}

\begin{lstlisting}
# paste your python code here
\end{lstlisting}

\subsection*{Exercise 34}
\textit{Modify your function from Exercise 32 to count the number of divisions, and print the count before returning. Use this code to answer to Exercise 34.}

\begin{lstlisting}
# paste your python code here
\end{lstlisting}

\section*{Section 4.5 (page 292)}

\subsection*{Exercise 4}

\subsection*{Exercise 10}

\subsection*{Exercise 20, a--b}

\section*{Section 4.6 (page 304)}

\subsection*{Exercise 8}
\textit{Hint: Try running the code from the ``Python 101'' slides.}

\begin{lstlisting}
# paste your python code here
\end{lstlisting}

\subsection*{Exercise 14}

\subsection*{Exercise 18}

\subsection*{Exercise 24}

\end{document}
