\documentclass[addpoints,12pt]{exam} % can add 'answers' option
\setlength{\parindent}{0mm}
\usepackage{amsmath}
\usepackage{enumerate}
\usepackage{microtype}
\usepackage{tikz}

\newcommand{\blankunderline}[2]{\makebox[#1]{#2\enspace\hrulefill}}

\newcommand{\dueday}{Monday}
\newcommand{\duewhen}{10/14/19 at 11:59pm}
\newcommand{\hwnum}{2}
\newcommand{\classnumber}{Math 20C -- Swanson }
\newcommand{\classiteration}{Fall 2019}

\pagestyle{headandfoot}
\runningheadrule
\firstpageheader{\classnumber -- \classiteration}{}{Homework \hwnum}
\runningheader{\classnumber}
{Homework, Page \thepage\ of \numpages}
{Due \duewhen}
\firstpagefooter{}{}{}
\runningfooter{}{}{}

\begin{document}
\ 

\begin{center}
  \fbox{\parbox{3in}{\centering\large
  \classnumber -- \classiteration \\
  Homework \hwnum \\
  Due \dueday, \duewhen}}
\end{center}
\vspace{1cm}
%\blankunderline{0.8\textwidth}{Name:}
%\blankunderline{0.15\textwidth}{Section:}

\vspace{1cm}
\begin{itemize}
  \item The graded part of the homework is on WebAssign.
  \item The problems below are also assigned and you are responsible for doing them,
    but they will not be collected or graded.
\end{itemize}

\newpage

\begin{questions}
  \question Consider $\vec{a} = 2\hat\imath$ and
    $\vec{b} = -\hat\imath + 3\hat{k}$.
    \begin{enumerate}[(a)]
      \item Use the dot product to find the angle (in degrees) between
        $\vec{a}$ and $\vec{b}$.
      \item Use the cross product to find the angle (in degrees) between
        $\vec{a}$ and $\vec{b}$.
      \item Are there any complications in either method?
    \end{enumerate}
    
    \begin{solution}
      
    \end{solution}
    \newpage
  
  \question Compute the point closest to $R = (8, 7)$ on the line
    through $P = (5, 1)$ and $Q = (9, 4)$.
  
    \begin{solution}
      
    \end{solution}
    \newpage

  \question Determine whether the following vectors point into the
    page (away from you) or out of the page (towards you). Vectors
    $\vec{v}$ and $\vec{w}$ are shown below.
    \begin{enumerate}[(a)]
      \item $\vec{v} \times \vec{w}$
      \item $\vec{w} \times \vec{v}$
      \item $(3\vec{w} - 2\vec{v}) \times (\vec{v} - 4\vec{w})$
    \end{enumerate}
    
    \begin{tikzpicture}
      \draw[->] (0, 0) -- (-3, 1) node [near end, above] {$\vec{v}$};
      \draw[->] (0, 0) -- (5, 2) node [near end, above] {$\vec{w}$};
    \end{tikzpicture}
    
    \begin{solution}
      
    \end{solution}
    \newpage
\end{questions}
\end{document}