% 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 White
\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\}$, $B=\{1,3,6\}$ and $C=\{1,2,3,4,5\}$. Find
$$(A\cup B)\cap C$$

\answer $\{1,2,3\}$

\prob{10} % 1.2- 1
$X,Y,Z$ are subsets of a universal set $U$.
Draw a Venn diagram to illustrate the set
$$(X\cup Y)\cap Z^\prime$$



\prob{10} % 1.R-11
The staff at the zoo ask visitors to complete a survey.  The results
were 245 went to the elephant house and 270 went to monkey house.
If 185 went to both how many visited only one of the two?

\answer $145$

\prob{10} % 2.1-15
A die is weighted so that throwing a 1 or 6 are equally likely;
throwing a 1 is half as likely as throwing a 2,3,4, or 5; and
these are equally likely.   What probabilities should be assigned to
each possible outcome?

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


\prob{10} % 2.2-21
A burglar can `visit' three houses on each of the streets, Monroe, Jefferson,
Adams, Franklin, Washington, and Clinton.  He plans to pick a street and
then a house and rob it on Friday and for Saturday he will pick a different
street and then a house on it to rob.  How many ways can he do this?

\answer $270$

\prob{10} % 2.3-19
The department of mathematics has nine men and five 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 three apples, two peaches, and four candy bars.  If three objects
are randomly chosen from the hat, what is the probability that all three are
candy bars?

\answer $1/21$

\finishtbl

\printanswers

\end{document}



