% LaTex2e
\documentclass[12pt]{article}
\usepackage{amssymb,latexsym}

\usepackage{anysize}
%\marginsize{left}{right}{top}{bottom}
%\marginsize{1.25cm}{1.25cm}{1.75cm}{2.5cm} % this cuts off page numbers
\marginsize{2cm}{2cm}{1cm}{3cm}

\pagestyle{myheadings}
\def\header{{\hfill Exam 1 
\hfill Canary Yellow
\hfill A. Miller 
\hfill Fall 2005
\hfill Math 210\hfill}}
\markboth\header\header
\newcount\probno
\newcount\total
\newwrite\examTBLFile

\probno=0

\def\prob#1{\advance\probno by 1 \par  \vfill \newpage
    \noindent\the\probno . (#1 pts)\advance\total by #1
    \immediate\write\examTBLFile{\the\probno
       \string& #1 \string&
       \string\qquad \string\\ \string\hline}}

\def\finishtbl{
    \immediate\write\examTBLFile{Total \string& \the\total
    \string& \qquad \string\\ \string\hline}
     }

\newwrite\ans
\immediate\openout\ans=answers
\outer\def\answer{\par\medbreak
  \immediate\write\ans{}
  \immediate\write\ans{\string\bigskip \the\probno . }
  \copytoblankline}
\outer\def\answerx{\par\medbreak
  \immediate\write\ans{}
  \immediate\write\ans{\string\bigskip \the\probno . }
  \copytoblankline}
\outer\def\putanswer{\par\medbreak
  \immediate\write\ans{}
  \copytoblankline}
\def\copytoblankline{\begingroup\setupcopy\copyans}
\def\setupcopy{\def\do##1{\catcode`##1=12}\dospecials
     \catcode`\|=12\obeylines}
{\obeylines \gdef\copyans#1
  {\def\next{#1}%
  \ifx\next\empty\let\next=\endgroup%
  \else\immediate\write\ans{\next}\let\next=\copyans\fi\next}}
\def\printanswers{\newpage\begin{center} Answers \end{center}
    \immediate\closeout\ans\input answers}

\begin{document}

\bigskip

{ \bf Show all work.

Simplify your answer.

Circle your answer. }

\bigskip

No books, no calculators, no cell phones, no pagers, no
electronic devices of any kind.


\par\vskip .25in
\begin{center}
Name\makebox[3in]{\hrulefill} \\
\end{center}

\bigskip
Circle your Discussion Section:
\begin{verbatim}

   343  T   12:05--12:55        1412 STERLING
   344  R   12:05--12:55        1327 STERLING
   345  T   13:20--14:10        1327 STERLING
   346  R   13:20--14:10        55 BASCOM

\end{verbatim}
\bigskip

\begin{center} \Large
 \begin{tabular}{||c|c|c||} \hline\hline
  Problem & Points & Score \\  \hline\hline
   \input{exam.tbl}
  \hline \hline
 \end{tabular}
\end{center}

\immediate\openout\examTBLFile=exam.tbl

\bigskip

Solutions will be posted shortly after the exam:
www.math.wisc.edu/$\sim$miller/m210

\setcounter{page}{0}

\newpage

\prob{10} % 1.1- 3

Let $A=\{1,2,3\}$, $B=\{1,3,6\}$ and $C=\{4,5\}$. Find $$(A\cap B)\cup C$$

\answer $\{1,3,4,5\}$

\prob{10} % 1.2- 1

$X,Y,Z$ are subsets of a universal set $U$. Draw a Venn diagram to illustrate
the set $$(X\cap Y)\cup Z^\prime$$

\prob{10} % 1.R-11

The staff at the zoo ask visitors to complete a survey.  The results were 215
went to the elephant house and 285 went to monkey house. If 190 went to both
how many vistaed only one of the two?

\answer $120$


\prob{10} % 2.1-15

A die is weighted so that throwing a 1,3, or 5 are equally likely; throwing a 1
is a third as likely as throwing a 2,4, or 6; and these are equally likely.
What probabilities should be assigned to each possible outcome?

\answer $Pr(1)=Pr(3)=Pr(5)=1/12$ $\;\;\;\;\;\;\;Pr(2)=Pr(4)=Pr(6)=1/4$

\prob{10} % 2.2-21

A bank robber can `visit' four banks in each of the towns, Monroe, Jefferson,
Stoughton, Oregon, and Fitchburg.  He plans to pick a town and then a bank and
rob it on Friday and for Saturday he will pick a different town and then a bank
in it to rob.  How many ways can he do this?

\answer $320$

\prob{10} % 2.3-19

The department of mathematics has eight men and six women faculty.  A
committee of five is to be formed to look into the question of why women are
under represented in the math department.  If the committee is to have three 
men and two women on it, in how many ways can it be chosen?

\answer $840$

\prob{10} % 2.4- 5

A hat contains four nickels, two dimes, and five quarters.   If
three coins are randomly chosen from the hat, what is the probability that all
three are quarters?

\answer $2/33$

\finishtbl
\printanswers

\end{document}



