\documentstyle{report}

\pagestyle{myheadings}
\def\headlineaux{\sc Math 220/317: Programming II/Data Structures
\hrulefill
}
\markboth{\headlineaux}{\headlineaux}

\setlength{\textwidth}{6.25in}
\setlength{\oddsidemargin}{0in}
\setlength{\evensidemargin}{0in}

\newcommand{\assignmentNumber}{1}
\newcommand{\outdate}{31 August, 1995}
\newcommand{\duedate}{5 September, 1995}

\begin{document}
\begin{titlepage}\begin{centerline}{\Huge \framebox{Burt Rosenberg}}
\end{centerline}\end{titlepage}

\section*{Problem Set \assignmentNumber \hfill{\parbox{3in}
    {\small\sc\begin{flushright} Out: \outdate
     \\ Due: \duedate\end{flushright}}}}


\subsection*{Goals}

Introduction to C and Unix

\subsection*{Reading Assignment}

Chapters 1 through 5 in the cow book.

\subsection*{Assignment}

Exercises 1 through 5 in chapter 3 from the cow.

\subsection*{Notes on Unix}

Important commands:
\begin{itemize}
\item {\tt ls} To list the current directory.
\item {\tt cd} {\em directory-name} To change the current directory.
\item {\tt cd ..} (with two dots) To move up to the parent directory.
\item {\tt cd} (with no arguments) To return to your home directory.
\item {\tt rm} {\em file-name} To remove a file.
\item {\tt cp} {\em exisiting-file new-file} To copy a file.
\item {\tt mkdir} {\em directory-name} To make a subdirectory.
\item {\tt rmdir} {\em directory-name} To remove a subdirectory.
\item {\tt more} {\em file-name} To ``more'' (that is, display) a file.
\item {\tt pico} {\em file-name} To pico (edit) a file.
\item {\tt cc} {\em file-name} To compile a C file.
\item {\tt a.out} To run the default output of {\tt cc}.
\item {\tt mail mth220@cs.miami.edu <} {\em file-name} To mail your
file.
\item {\tt logout} To log out.
\end{itemize}

\subsection*{Example Programs}

\begin{verbatim}
cs> more test.c
#include<stdio.h>
/* test.c
   Burt Rosenberg
   Math 220, Fall 1995
*/
char c ;
char *s ;
main() {
  s = "%c\n" ;
  c = '!' ;
  printf(s,c) ;
}
cs> cc test.c
cs> a.out
!
cs> more test2.c
#include<stdio.h>
/* test2.c
   Burt Rosenberg
   Mth 220, Fall 1995
*/
char *s ;
main() {
  s = "hi!\n" ;
  while( *s != '\0' ) {
    printf("%c", *(s++) ) ;
  }
}
cs> cc test2.c
cs> a.out
hi!
cs>
\end{verbatim}



\end{document}
