%% This document created by Scientific Notebook (R) Version 3.0


\documentclass[12pt,thmsa]{article}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{sw20jart}

%TCIDATA{TCIstyle=article/art4.lat,jart,sw20jart}

%TCIDATA{<META NAME="ViewSettings" CONTENT="17">}
%TCIDATA{<META NAME="GraphicsSave" CONTENT="32">}
%TCIDATA{Created=Mon Aug 19 14:52:24 1996}
%TCIDATA{LastRevised=Thu Feb 13 11:14:22 1997}
%TCIDATA{CSTFile=Exam.cst}
%TCIDATA{PageSetup=72,72,36,36,0}
%TCIDATA{AllPages=
%F=36,\PARA{038<p type="texpara" tag="Body Text" >\hfill \thepage}
%}


\input{tcilatex}
\begin{document}


\section{Exam}

\subsection{\protect\vspace{1pt}Text}

\section{Percents}

Your Name: 
%TCIMACRO{\HTML{<Input TYPE="Text" NAME="STUDENTNAME" VALUE=" " SIZE=0>}}
%BeginExpansion
%%
%EndExpansion

\vspace{1pt}

\subsection{Setup}

Choice Space: 2

Choices: No Break, Radio Buttons, Permute

Title:Test on Percent

\section{Question}

\subsection{Setup}

$r:=5\limfunc{rand}(1,19)$

$p:=\limfunc{rand}(10,50)$

$a:=rp/100$

Conditions: $\left( r\neq p\right) $

\subsection{Statement}

What is $%
%TCIMACRO{\FORMULA{r}{r}{evaluate}}
%BeginExpansion
r%
%EndExpansion
\%\,$of $%
%TCIMACRO{\FORMULA{p}{p}{evaluate}}
%BeginExpansion
p%
%EndExpansion
$?

\subsection{Choices}

\begin{itemize}
\item  $%
%TCIMACRO{\FORMULA{p/r}{\frac{p}{r}}{evaluate}}
%BeginExpansion
\frac{p}{r}%
%EndExpansion
$

\item  $%
%TCIMACRO{\FORMULA{100a}{100a}{evaluate}}
%BeginExpansion
100a%
%EndExpansion
$

\item  $%
%TCIMACRO{\FORMULA{r/p}{\frac{r}{p}}{evaluate}}
%BeginExpansion
\frac{r}{p}%
%EndExpansion
$

\item  $%
%TCIMACRO{\FORMULA{a}{a}{evaluate}}
%BeginExpansion
a%
%EndExpansion
\correctchoice{}$
\end{itemize}

\begin{description}
\item[Fixed]  None of these
\end{description}

\section{Question}

\subsection{Setup}

$r:=5\limfunc{rand}(2,19)$

$p:=5\limfunc{rand}(10,39)$

$a:=100r/p$

Conditions: $\left( r<p\right) \wedge \left( \left( p\func{mod}100\right)
\neq 0\right) $

\subsection{Statement}

$%
%TCIMACRO{\FORMULA{r}{r}{evaluate}}
%BeginExpansion
r%
%EndExpansion
$ is what percent of $%
%TCIMACRO{\FORMULA{p}{p}{evaluate}}
%BeginExpansion
p%
%EndExpansion
$?

\subsection{Choices}

\begin{itemize}
\item  $%
%TCIMACRO{\FORMULA{a+5}{a+5}{evaluate}}
%BeginExpansion
a+5%
%EndExpansion
$

\item  $%
%TCIMACRO{\FORMULA{a+1}{a+1}{evaluate}}
%BeginExpansion
a+1%
%EndExpansion
$

\item  $%
%TCIMACRO{\FORMULA{a}{a}{evaluate}}
%BeginExpansion
a%
%EndExpansion
\correctchoice{}$

\item  $%
%TCIMACRO{\FORMULA{a-5}{a-5}{evaluate}}
%BeginExpansion
a-5%
%EndExpansion
$
\end{itemize}

\begin{description}
\item[Fixed]  None of these
\end{description}

\section{Question}

\subsection{Setup}

$r:=5\limfunc{rand}(3,19)$

$p:=5\limfunc{rand}(3,19)$

$a:=100r/p$

Conditions: $\left( r\neq p\right) $

\subsection{Statement}

$%
%TCIMACRO{\FORMULA{r}{r}{evaluate}}
%BeginExpansion
r%
%EndExpansion
$ is $%
%TCIMACRO{\FORMULA{p}{p}{evaluate}}
%BeginExpansion
p%
%EndExpansion
\%$ of what?

\subsection{Choices}

\begin{itemize}
\item  $%
%TCIMACRO{\FORMULA{a-5}{a-5}{evaluate}}
%BeginExpansion
a-5%
%EndExpansion
$

\item  $%
%TCIMACRO{\FORMULA{rp}{rp}{evaluate}}
%BeginExpansion
rp%
%EndExpansion
$

\item  $%
%TCIMACRO{\FORMULA{r+p}{r+p}{evaluate}}
%BeginExpansion
r+p%
%EndExpansion
$

\item  $%
%TCIMACRO{\FORMULA{a}{a}{evaluate}}
%BeginExpansion
a%
%EndExpansion
\correctchoice{}$
\end{itemize}

\begin{description}
\item[Fixed]  None of these
\end{description}

\section{Question}

\subsection{Setup}

$r:=5\limfunc{rand}(1,19)$

$p:=\limfunc{rand}(10,50)$

$a:=rp/100$

Conditions: $\left( r\neq p\right) $

\subsection{Statement}

What is $%
%TCIMACRO{\FORMULA{r}{r}{evaluate}}
%BeginExpansion
r%
%EndExpansion
\%\,$of $%
%TCIMACRO{\FORMULA{p}{p}{evaluate}}
%BeginExpansion
p%
%EndExpansion
$?

\subsection{Choices}

\begin{itemize}
\item  $%
%TCIMACRO{\FORMULA{100a}{100a}{evaluate}}
%BeginExpansion
100a%
%EndExpansion
$

\item  $%
%TCIMACRO{\FORMULA{a}{a}{evaluate}}
%BeginExpansion
a%
%EndExpansion
\correctchoice{}$

\item  $%
%TCIMACRO{\FORMULA{r/p}{\frac{r}{p}}{evaluate}}
%BeginExpansion
\frac{r}{p}%
%EndExpansion
$

\item  $%
%TCIMACRO{\FORMULA{p/r}{\frac{p}{r}}{evaluate}}
%BeginExpansion
\frac{p}{r}%
%EndExpansion
$
\end{itemize}

\begin{description}
\item[Fixed]  None of these
\end{description}

\section{Question}

\subsection{Setup}

$r:=5\limfunc{rand}(2,19)$

$p:=5\limfunc{rand}(10,39)$

$a:=100r/p$

Conditions: $\left( r<p\right) \wedge \left( \left( p\func{mod}100\right)
\neq 0\right) $

\subsection{Statement}

$%
%TCIMACRO{\FORMULA{r}{r}{evaluate}}
%BeginExpansion
r%
%EndExpansion
$ is what percent of $%
%TCIMACRO{\FORMULA{p}{p}{evaluate}}
%BeginExpansion
p%
%EndExpansion
$?

\subsection{Choices}

\begin{itemize}
\item  $%
%TCIMACRO{\FORMULA{a}{a}{evaluate}}
%BeginExpansion
a%
%EndExpansion
\correctchoice{}$

\item  $%
%TCIMACRO{\FORMULA{a+1}{a+1}{evaluate}}
%BeginExpansion
a+1%
%EndExpansion
$

\item  $%
%TCIMACRO{\FORMULA{a+5}{a+5}{evaluate}}
%BeginExpansion
a+5%
%EndExpansion
$

\item  $%
%TCIMACRO{\FORMULA{a-5}{a-5}{evaluate}}
%BeginExpansion
a-5%
%EndExpansion
$
\end{itemize}

\begin{description}
\item[Fixed]  None of these
\end{description}

\section{Question}

\subsection{Setup}

$r:=5\limfunc{rand}(3,19)$

$p:=5\limfunc{rand}(3,19)$

$a:=100r/p$

Conditions: $\left( r\neq p\right) $

\subsection{Statement}

$%
%TCIMACRO{\FORMULA{r}{r}{evaluate}}
%BeginExpansion
r%
%EndExpansion
$ is $%
%TCIMACRO{\FORMULA{p}{p}{evaluate}}
%BeginExpansion
p%
%EndExpansion
\%$ of what?

\subsection{Choices}

\begin{itemize}
\item  $%
%TCIMACRO{\FORMULA{rp}{rp}{evaluate}}
%BeginExpansion
rp%
%EndExpansion
$

\item  $%
%TCIMACRO{\FORMULA{a}{a}{evaluate}}
%BeginExpansion
a%
%EndExpansion
\correctchoice{}$

\item  $%
%TCIMACRO{\FORMULA{r+p}{r+p}{evaluate}}
%BeginExpansion
r+p%
%EndExpansion
$

\item  $%
%TCIMACRO{\FORMULA{a-5}{a-5}{evaluate}}
%BeginExpansion
a-5%
%EndExpansion
$
\end{itemize}

\begin{description}
\item[Fixed]  None of these
\end{description}

\section{Question}

\subsection{Setup}

$r:=5\limfunc{rand}(3,19)$

$p:=5\limfunc{rand}(3,19)$

$q:=50\limfunc{rand}(10,39)$

\subsection{Statement}

What is $%
%TCIMACRO{\FORMULA{r}{r}{evaluate}}
%BeginExpansion
r%
%EndExpansion
\%$ of $%
%TCIMACRO{\FORMULA{p}{p}{evaluate}}
%BeginExpansion
p%
%EndExpansion
\%$ of $%
%TCIMACRO{\FORMULA{q}{q}{evaluate}}
%BeginExpansion
q%
%EndExpansion
$?

\subsection{Choices}

\begin{itemize}
\item  $%
%TCIMACRO{\FORMULA{pq/100}{\frac{1}{100}pq}{evaluate}}
%BeginExpansion
\frac{1}{100}pq%
%EndExpansion
$

\item  $%
%TCIMACRO{
%\FORMULA{\left( \left( r+p\right) /100\right) \ast q}{\frac{1}{100}\left( r+p\right) q}{evaluate}}
%BeginExpansion
\frac{1}{100}\left( r+p\right) q%
%EndExpansion
$

\item  $%
%TCIMACRO{\FORMULA{r+p}{r+p}{evaluate}}
%BeginExpansion
r+p%
%EndExpansion
$

\item  $%
%TCIMACRO{
%\FORMULA{\left( r/100\right) \ast \left( p/100\right) \ast q}{\frac{1}{10\,000}rpq}{evaluate}}
%BeginExpansion
\frac{1}{10\,000}rpq%
%EndExpansion
\correctchoice{}$
\end{itemize}

\begin{description}
\item[Fixed]  None of these
\end{description}

\section{Question}

\subsection{Comment}

Calculate the cost of a dress that is marked down for a sale. \ Multiply
everything by 100 to reduce rounding. \ The original cost of the dress is \$$%
79.95$ to \$$199.95$. The sale is between 20 and 75\% off.

The formulas in the choices below use the $\left\lfloor {}\right\rfloor $
(floor operator) brackets to obtain the integer part of a calculation and
then divide the resulting integer by 100 to produce the 2 decimal points
seen on the screen. Since the generated random number has already been
multiplied by 100, there is no need to multiply by 100 in the formulas. By
changing $f$ in the setup section, you can change the price range of the
dress. \ Note that using an even dollar amout (such as $500\left(
=\$5.00\right) $), you will often get choices with one $0$ to the right of
the decimal point. \ Using $495\left( =\$4.95\right) $ generates choices
which should never have just one digit to the right of \ the decimal point.

Note also that the formulas use the \emph{evaluatenum} operation in order to
generate results that are decimal rather the \emph{evaluate} operation which
returns rational numbers (fractions).

\subsection{Setup}

$d:=500\func{rand}(15,39)$

$p:=5\func{rand}(4,15)$

$f=495$

\subsection{Statement}

A dress in a store cost $%
%TCIMACRO{
%\FORMULA{\left( d+f\right) /100}{.0\,\allowbreak 1d+.0\,\allowbreak 1f}{evaluatenum}}
%BeginExpansion
.0\,\allowbreak 1d+.0\,\allowbreak 1f%
%EndExpansion
$. In a storewide clearance sale, the dress is marked down $%
%TCIMACRO{\FORMULA{p}{p}{evaluatenum}}
%BeginExpansion
p%
%EndExpansion
$\%. What is the sale price of the dress?

\subsection{Choices}

\begin{itemize}
\item  \$$%
%TCIMACRO{
%\FORMULA{\left( \left( d+f\right) /100\right) -\left\lfloor \left( d+f+1\right) p/100\right\rfloor /100}{.0\,\allowbreak 1d+.0\,\allowbreak 1f-\allowbreak .0\,\allowbreak 1\times .0\,\allowbreak 1\left( d+f+1.0\right) p}{evaluatenum}}
%BeginExpansion
.0\,\allowbreak 1d+.0\,\allowbreak 1f-\allowbreak .0\,\allowbreak 1\times .0\,\allowbreak 1\left( d+f+1.0\right) p%
%EndExpansion
$\correctchoice{}

\item  \$$%
%TCIMACRO{
%\FORMULA{\left( \left( d+f\right) /100\right) -p}{.0\,\allowbreak 1d+.0\,\allowbreak 1f-\allowbreak 1.0p}{evaluatenum}}
%BeginExpansion
.0\,\allowbreak 1d+.0\,\allowbreak 1f-\allowbreak 1.0p%
%EndExpansion
$

\item  \$$%
%TCIMACRO{
%\FORMULA{\left( \left( d+f\right) /100\right) +p}{.0\,\allowbreak 1d+.0\,\allowbreak 1f+\allowbreak p}{evaluatenum}}
%BeginExpansion
.0\,\allowbreak 1d+.0\,\allowbreak 1f+\allowbreak p%
%EndExpansion
$

\item  \$$%
%TCIMACRO{
%\FORMULA{\left( \left( d+f\right) /100\right) -\left( \left\lfloor \left( d+f+1\right) p/100\right\rfloor /100\right) +5.0}{.0\,\allowbreak 1d+.0\,\allowbreak 1f-\allowbreak .0\,\allowbreak 1\times .0\,\allowbreak 1\left( d+f+1.0\right) p+\allowbreak 5.0}{evaluatenum}}
%BeginExpansion
.0\,\allowbreak 1d+.0\,\allowbreak 1f-\allowbreak .0\,\allowbreak 1\times .0\,\allowbreak 1\left( d+f+1.0\right) p+\allowbreak 5.0%
%EndExpansion
$
\end{itemize}

\begin{description}
\item[Fixed]  None of these.
\end{description}

\section{Question}

\subsection{Comment}

Calculate the markup a store applies to a pair of shoes. \ The markup is
between $15$ and $42$\%. The original cost of the shoes to the store is
between \$$50.00$ and \$$125.00$.

See the comments in the question above for more details on this question.

\subsection{Setup}

$r:=\limfunc{rand}(15,42)$

$p:=500\limfunc{rand}(10,25)$

Conditions: $\left( p\neq 100\right) $

\subsection{Statement}

A store applies a $%
%TCIMACRO{\FORMULA{r}{r}{evaluate}}
%BeginExpansion
r%
%EndExpansion
$\% markup to all merchandise. If a pair of shoes costs the store \$$%
%TCIMACRO{\FORMULA{p/100}{.0\,\allowbreak 1p}{evaluatenum}}
%BeginExpansion
.0\,\allowbreak 1p%
%EndExpansion
$, how much does the store charge for them?

\subsection{Choices}

\begin{itemize}
\item  \$$%
%TCIMACRO{
%\FORMULA{\left\lfloor p+rp/100\right\rfloor /100}{.0\,\allowbreak 1\left\lfloor p+.0\,\allowbreak 1rp\right\rfloor }{evaluatenum}}
%BeginExpansion
.0\,\allowbreak 1\left\lfloor p+.0\,\allowbreak 1rp\right\rfloor %
%EndExpansion
$\correctchoice{}

\item  \$$%
%TCIMACRO{\FORMULA{p/100+r}{.0\,\allowbreak 1p+r}{evaluatenum}}
%BeginExpansion
.0\,\allowbreak 1p+r%
%EndExpansion
$

\item  \$$%
%TCIMACRO{
%\FORMULA{\left\lfloor p+rp/100\right\rfloor /100+2.00}{.0\,\allowbreak 1\left\lfloor p+.0\,\allowbreak 1rp\right\rfloor +\allowbreak 2.0}{evaluatenum}}
%BeginExpansion
.0\,\allowbreak 1\left\lfloor p+.0\,\allowbreak 1rp\right\rfloor +\allowbreak 2.0%
%EndExpansion
$

\item  \$$%
%TCIMACRO{
%\FORMULA{\left\lfloor p+rp/100\right\rfloor /100-2.00}{.0\,\allowbreak 1\left\lfloor p+.0\,\allowbreak 1rp\right\rfloor -\allowbreak 2.0}{evaluatenum}}
%BeginExpansion
.0\,\allowbreak 1\left\lfloor p+.0\,\allowbreak 1rp\right\rfloor -\allowbreak 2.0%
%EndExpansion
$
\end{itemize}

\begin{description}
\item[Fixed]  None of these
\end{description}

\section{Question}

\subsection{Setup}

$r:=10\limfunc{rand}(1,9)$

$p:=10\limfunc{rand}(1,9)$

$q:=10\limfunc{rand}(10,19)$

$s:=10\func{rand}(20,29)$

Condition: $\left( r\neq p\right) $

\subsection{Statement}

$%
%TCIMACRO{\FORMULA{r}{r}{evaluate}}
%BeginExpansion
r%
%EndExpansion
$\% of $%
%TCIMACRO{\FORMULA{q}{q}{evaluate}}
%BeginExpansion
q%
%EndExpansion
$ plus $%
%TCIMACRO{\FORMULA{p}{p}{evaluate}}
%BeginExpansion
p%
%EndExpansion
$\% of $%
%TCIMACRO{\FORMULA{s}{s}{evaluate}}
%BeginExpansion
s%
%EndExpansion
$ is what percent of $%
%TCIMACRO{\FORMULA{q+s}{q+s}{evaluate}}
%BeginExpansion
q+s%
%EndExpansion
$?

\subsection{Choices}

\begin{itemize}
\item  $%
%TCIMACRO{\FORMULA{r+p}{r+p}{evaluate}}
%BeginExpansion
r+p%
%EndExpansion
$

\item  $%
%TCIMACRO{
%\FORMULA{\left( rq+ps\right) /\left( q+s\right) }{\frac{rq+ps}{q+s}}{evaluate}}
%BeginExpansion
\frac{rq+ps}{q+s}%
%EndExpansion
\correctchoice{}$

\item  $%
%TCIMACRO{\FORMULA{r+p+5}{r+p+5}{evaluate}}
%BeginExpansion
r+p+5%
%EndExpansion
$

\item  $%
%TCIMACRO{\FORMULA{r+p-5}{r+p-5}{evaluate}}
%BeginExpansion
r+p-5%
%EndExpansion
$
\end{itemize}

\begin{description}
\item[Fixed]  None of these
\end{description}

\end{document}
