% 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 4
\hfill 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        1327 STERLING 

\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.3-19 
Let $A$ and $B$ be subsets of a universal set $U$.  Suppose
$n(U)=40$, $n(B)=15$ and $n(A\cup B^\prime)=30$.  Find
$n(A\cap B)$.

\answer 5

\prob{12} % 6.1
Let 
$$A=\left[
\begin{array}{rrr}
 1  &  -1  &  1 
\end{array}\right]
\;\;\;\;\;\;\;\mbox{ and } \;\;\;\;\;\;\;
B=\left[
\begin{array}{r}
 1  \\ 2 \\ -1   
\end{array}\right]$$

(a) Find $AB$ or state that it is an undefined product 

\bigskip
(b) Find $BA$ or state that it is an undefined product

\answer  \par (a) -2 or $[-2]$
\par (b) 
$$
\left[
\begin{array}{rrr}
 1  &  -1  &  1  \\
 2  &  -2  &  2  \\
 -1  &  1  &  -1 \\
\end{array}\right]
$$

 \prob{12} %  7.2-17
A set $F$ is described the inequalities
 $$ 3x+y\leq 14 $$
 $$ 3x-4y+26\geq 0$$
 $$ y\geq 2 $$
Graph the set $F$ and find the coordinates of the corner points. 

\answer $F$ is the interior and boundaries of the triangle
with corners $(-6,2),(2,8),(4,2)$.

 \prob{12} % 7.3
Frank's Fruity Juice Stand sells two kinds of fruit drinks, 
Tangaid and Fungaid.  One glass of Tangaid contains 5 ounces
of apple juice and 3 ounces of lime juice.  One glass of
Fungaid contains 2 ounces of apple juice and 6 ounces of lime
juice.  Frank has available 200 ounces of apple juice and
360 ounces of lime juice.  His profit is 50 cents per glass
of Tangaid and 40 cents per glass of Fungaid.  How many glasses
of each kind should he produce to maximize her profit?   

\answer 20 Tangaid and 50 Fungaid.

 \prob{12} %  8.1-11
A Markov chain has the following transition matrix:
 $$
 \left[
 \begin{array}{rrr}
  .1  &  .5  &  .4 \\
  .6  &  .1  &  .3 \\
  .6  &  .2  &  .2 \\
 \end{array}\right]$$
On the first observation it is in state 2.

(a) What is the probability it is in state 3 on the second observation?

(b) What state is it most likely to occupy on the second observation?

\answer (a) $.3\;\;\;\;\;$ (b) state 1

 \prob{12} %  8.2-16
A not-so-enthusiastic student tends to miss class on Friday afternoons. She is
always in one of two states, absent A or present P, and transitions occur
according to the matrix:
 $$
  \begin{array}{r|rr}
       &   A  &   P \\
       \hline
   A   &  .2  &   .8 \\
   P   &  .6  &   .4  \\
 \end{array}$$
If the student is absent on a given Friday afternoon, find the probability she
will be present 2 weeks latter.

\answer $.48$

\finishtbl
\printanswers
\end{document}




