\documentclass[noanswers,addpoints,10pt,x11names]{exam}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{xcolor}
\usepackage[most]{tcolorbox}
\usepackage{datetime}
\usepackage{enumerate}
\usepackage{xltxtra}
\usepackage{listings}

\usepackage{graphicx}
\usepackage{hyperref}
\usepackage{makecell}
\usepackage{multicol}
\usepackage{multirow}

\usepackage{enumitem}

% compact itemized and then enumerated
\setlist{leftmargin=*,
  noitemsep,
  topsep=5pt,
  parsep=0pt,
  partopsep=0pt,
}

\setlist[enumerate]{leftmargin=*,
  itemsep=2pt,
  topsep=0pt,
  parsep=0pt,
  partopsep=0pt,
}

\usepackage{tabularx}
\usepackage{textcomp}
\usepackage{tikz}
\usetikzlibrary{arrows,automata,decorations.pathmorphing,backgrounds,positioning,fit}
\usepackage{pgf-umlcd}

\usepackage{fontspec}
\IfFontExistsTF{Gentium Book Basic}{
  \setmainfont{Gentium Book Basic}
}{
  \setmainfont{Times New Roman}
}
\IfFontExistsTF{Comic Code}{
  \setmonofont{Comic Code}[
    Scale = 0.85,
  ]
}{
}

\lstset{
  basicstyle=\ttfamily,
}

\newcommand{\checkpoint}{{\Large $\checkmark$} }

% classname
\newcommand\assignmentTitle{pWhatToWear -- Conditional Execution}
\newcommand\semester{Spring 2024}
\newcommand\className{Assembly Language and Computer Organization}
\newcommand\classNumber{CIS~356}
\newcommand\classFullName{\classNumber~\className}
\renewcommand{\dateseparator}{-}
\yyyymmdddate

% /classname

\pagestyle{headandfoot}
\firstpageheader{\classNumber\\\semester}{\assignmentTitle\\~}{\today\\~}
\runningheader{\assignmentTitle}{}{\today}

\newenvironment{showExample}[1]{
  \begingroup
  \renewcommand{\solutiontitle}{\noindent\textbf{Example:}\enspace}
  \printanswers
  \begin{solution}[#1]
}{
  \end{solution}
  \endgroup
}

\definecolor{outputgray}{gray}{0.95}


\begin{document}
\pointsinrightmargin{}

\section*{Learning Outcomes}
Upon completing this assignment, students should be able to

\begin{itemize}
\item \textbf{Program} a simple \lstinline{if-else if-else} selection
  in MIPS assembly.
\item \textbf{Use} a separate \lstinline{eoln} string to end lines.
\end{itemize}

\section*{Overview}
Write an \emph{What to Wear} suggesting program in a single,
monolithic \lstinline{main} function that

\begin{itemize}
\item Prompts the user for the current temperature in degrees
  Fahrenheit

  \textbf{Store} the entered value in an appropriately named variable
  in RAM.
\item Based on the temperature band the temperature is in, suggests an
  outfit to wear.
  \begin{itemize}
  \item \emph{temp} $<$ 40 -- \emph{cold-weather} clothes
  \item 40 $\le$ \emph{temp} $<$ 80 -- \emph{warm-weather} clothes
  \item 80 $\le$ \emph{temp} -- \emph{hot-weather} clothes
  \end{itemize}

  \textbf{Make up} your description of each kind of clothing.
\end{itemize}

\section*{Procedure}
Program in \emph{commented} MIPS assembly language that loads and runs
in MARS. Make sure to include an appropriate ID block in the code.

\lstinline{README} documents what the code should do and how to rerun
the test cases you used.

Submit into Gitea \url{https://cs-devel.potsdam.edu} with the MIPS and
\lstinline{README} files.


\end{document}
%%% Local Variables:
%%% mode: latex
%%% TeX-master: t
%%% End:

%%% Local Variables:
%%% mode: latex
%%% TeX-master: t
%%% End:
