<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{course}

\LoadClass{article}

\RequirePackage{fancyhdr}
\RequirePackage[usenames]{color}
\RequirePackage{alltt}
\RequirePackage[letterpaper,margin=1in]{geometry}

\renewcommand\@maketitle{
\setlength\parindent{0in}
\addtolength\parskip{1ex}
\setlength\fboxrule{.5mm}\setlength{\fboxsep}{1.2mm}
\newlength\courseheader
\setlength\courseheader\textwidth
\addtolength\courseheader{-4mm}
\begin{center}
\framebox{\parbox\courseheader{\large
\@coursetitle\hfill\@assign\\ 
CS\@coursenumber\ \@semester\hfill\@duedate}}
\end{center}
\bigskip
}

\fancypagestyle{plain}{\fancyhead{}
\renewcommand\headrulewidth{0pt}
\renewcommand\footrulewidth{0.3pt}
\rfoot{\scriptsize{\thepage/\pageref{LastPage}}}}

\newcommand\course[3]{\gdef\@coursenumber{#1}\gdef\@coursetitle{#2}\gdef\@semester{#3}}
\newcommand\assign[2]{\gdef\@assign{#1}\gdef\@duedate{#2}}

\gdef\@coursenumber{\ClassError{course}{No \noexpand\course given}{You must specify a course number, semester, and course title}}
\gdef\@coursetitle{\ClassError{course}{No \noexpand\course given}{You must specify a course number, semester, and course title}}
\gdef\@semester{\ClassError{course}{No \noexpand\course given}{You must specify a course number, semester, and course title}}
\gdef\@assign{\ClassError{course}{No \noexpand\assign given}{You must specify an assignment number and due date}}
\gdef\@duedate{\ClassError{course}{No \noexpand\assign given}{You must specify an assignment number and due date}}

\pagestyle{fancy}
\fancyhf{}
\lhead{\small{CS\@coursenumber\ \@semester}}
\chead{\small{\@assign}}
\rhead{\small{\thepage/\pageref{LastPage}}}

\AtEndDocument{\label{LastPage}}

\definecolor{Code}{rgb}{1,0,0}
\newenvironment{codeblock}{\begin{alltt}\color{Code}\bfseries}{\end{alltt}}
\newcommand\code[1]{\textcolor{Code}{\tt\bfseries #1}}

\definecolor{Userinputcolor}{rgb}{0,0.5,0}
\newcommand\userinput[1]{\textcolor{Userinputcolor}{\tt\bfseries #1}}

\definecolor{Output}{rgb}{0.0, 0.0, 0.1}
\newenvironment{outputblock}{\begin{alltt}\color{Output}\bfseries}{\end{alltt}}

\definecolor{File}{rgb}{0,0,1}
\newcommand\file[1]{\textcolor{File}{\frenchspacing\tt\bfseries#1}}

\definecolor{Definition}{rgb}{1.0,0.5,0.0}
\newcommand\define[1]{\textcolor{Definition}{\tt\bfseries\textit{#1}}}

\definecolor{Blue}{rgb}{0,0,1}
\newcommand\blue[1]{\textcolor{Blue}{\tt\bfseries{#1}}}

\newcommand\Emph[1]{\emph{\textcolor[rgb]{1,0,1}{#1}}}

\definecolor{Red}{rgb}{1,0,0}
\newcommand\red[1]{\textcolor{Red}{\tt\bfseries{#1}}}

\newlength{\oldleftmargini}
\newenvironment{exercises}{\oldleftmargini=\leftmargini\leftmargini=3ex\begin{enumerate}}{\end{enumerate}\leftmargini=\oldleftmargini}

</pre></body></html>