diff options
Diffstat (limited to 'macros/latex/contrib/dps/examples/basic')
-rw-r--r-- | macros/latex/contrib/dps/examples/basic/dps_d1.tex | 239 | ||||
-rw-r--r-- | macros/latex/contrib/dps/examples/basic/dps_d1_p.tex | 238 | ||||
-rw-r--r-- | macros/latex/contrib/dps/examples/basic/dps_d2.tex | 231 | ||||
-rw-r--r-- | macros/latex/contrib/dps/examples/basic/dps_d3.tex | 231 | ||||
-rw-r--r-- | macros/latex/contrib/dps/examples/basic/dps_demo.tex | 200 | ||||
-rw-r--r-- | macros/latex/contrib/dps/examples/basic/dps_signin.tex | 215 | ||||
-rw-r--r-- | macros/latex/contrib/dps/examples/basic/dps_str_cus.def | 46 | ||||
-rw-r--r-- | macros/latex/contrib/dps/examples/basic/dps_test.tex | 226 | ||||
-rw-r--r-- | macros/latex/contrib/dps/examples/basic/stat_match1-print.tex | 308 |
9 files changed, 1934 insertions, 0 deletions
diff --git a/macros/latex/contrib/dps/examples/basic/dps_d1.tex b/macros/latex/contrib/dps/examples/basic/dps_d1.tex new file mode 100644 index 0000000000..1d9e1fc69c --- /dev/null +++ b/macros/latex/contrib/dps/examples/basic/dps_d1.tex @@ -0,0 +1,239 @@ +\documentclass{article} +\usepackage{web} +\usepackage{eforms} +\usepackage[!viewmode,!nonrandomized,!showletters,!showanswerkey,savedata]{dps} + +%\previewOn \pmpvOn +%\useRandomSeed{number} +\inputRandomSeed +%\useLastSeed + + +\ifeqforpaper +\setlength{\oddsidemargin}{-.5in}\fi + + +\margins{.5in}{.5in}{24pt}{.5in} % left,right,top, bottom +\screensize{6.75in+3\baselineskip}{8.5in} % height, width + +\title{DPS -- Das Puzzle Spiel} +\author{D. P. Story} + +% (Optional) Try to prevent the student from saving the game (for some other student) +% we clear the game board if either student closes or save the document. +%\clearOnCloseOrSave + +\parindent0pt +\parskip6pt + +\DeclarePuzzle +{% + {H}{H} + {e}{e} + {l}{l} + {l}{l} + {o}{o} + {}{cr} +% {}{space} + {J}{J} + {\tops{\protect\"{u}}{\ifxetex ü\else\string\374\fi}}{uml} % ü + {r}{r} + {g}{g} + {e}{e} + {n}{n} + {,}{punc} + {}{space} + {h}{h} + {o}{o} + {w}{w} + {}{space} + {a}{a} + {r}{r} + {e}{e} +% {}{space} + {}{cr} + {y}{y} + {o}{o} + {u}{u} + {}{space} + {t}{t} + {o}{o} + {d}{d} + {a}{a} + {y}{y} + {?}{punc} +} + +%\writeComposingEnv + +\begin{Composing} + +\begin{cQ}{H} +$ -5x - 2 + 3x $ +\end{cQ} +\begin{cA}[h]{H} +$-2x-2$ +\end{cA} + +\begin{cQ}{e} +$ 2x + 5x $ +\end{cQ} +\begin{cA}{e} +$7x$ +\end{cA} + +\begin{cQ}{l} +$ 6x - 3x + 1 $ +\end{cQ} +\begin{cA}{l} +$3x+1$ +\end{cA} + +\begin{cQ}{o} +$ 5 -5x + 2x -2 $ +\end{cQ} +\begin{cA}{o} +$-3x+3$ +\end{cA} + +\begin{cQ}{J} +$ 4( x + 2 ) - 2 $ +\end{cQ} +\begin{cA}[j]{J} +$4x+6$ +\end{cA} + +\begin{cQ}{uml} +$ -3x + 2(5-2x) $ +\end{cQ} +\begin{cA}{uml} +$-7x+10$ +\end{cA} + +\begin{cQ}{r} +$ -2 ( 3x + (-4) ) + 4 $ +\end{cQ} +\begin{cA}{r} +$-6x+12$ +\end{cA} + +\begin{cQ}{g} +$ 5 ( x - (-2) ) $ +\end{cQ} +\begin{cA}{g} +$5x+10$ +\end{cA} + +\begin{cQ}{n} +$ 6x - 5 (x - 2) $ +\end{cQ} +\begin{cA}{n} +$x+10$ +\end{cA} + +\begin{cQ}{h} +$ 2 - 3(4x - 2) $ +\end{cQ} +\begin{cA}{h} +$-12x+8$ +\end{cA} + +\begin{cQ}{w} +$ 6x - 3 + x + 5 $ +\end{cQ} +\begin{cA}{w} +$7x+2$ +\end{cA} + +\begin{cQ}{a} +$ 5( -2x + 4 ) + 3x - 2 $ +\end{cQ} +\begin{cA}{a} + $-7x+18$ +\end{cA} + +\begin{cQ}{y} +$ 3(x-3) - 2(x+2) $ +\end{cQ} +\begin{cA}{y} +$x-13$ +\end{cA} + +\begin{cQ}{u} +$ -2(3-x) - 4(1-3x) $ +\end{cQ} +\begin{cA}{u} +$14x-10$ +\end{cA} + +\begin{cQ}{t} +$ x (5 +2) -3x $ +\end{cQ} +\begin{cA}{t} +$4x$ +\end{cA} + +\begin{cQ}{d} +$ 1 -2 ( 2x -4x) + 2x $ +\end{cQ} +\begin{cA}{d} +$ 6x + 1$ +\end{cA} + +\end{Composing} + + +\begin{document} +\begin{center}\bfseries\Large\color{blue} + \webtitle\\[1ex]\webauthor +\end{center} + +\ifeqforpaper + \textcolor{red}{\textbf{Instructions:}} Solve each of the + numbered problems in the center panel, and find the answer in either + the left or right panel. Fill in the space(s) in the puzzle + corresponding to the question number with the letter associated with + the answer. +\else + \textcolor{red}{\textbf{Instructions:}} Select a question from the + center panel by clicking its checkbox. Solve the problem and find + the answer listed in either the left or right panel. No guessing! + A maximum of $\dsthreshold$ tries on any problem before you get + $\dspenaltypoints$ penalty points ! Passing is to complete the puzzle with only + $\dspassing$ incorrect answers. +\fi + +\fbox{\begin{minipage}{\linewidth-2\fboxsep-2\fboxrule}\centering +\insertPuzzle{16} +\end{minipage}} +\fbox{\begin{minipage}[t][3in][t]{.2\linewidth-2\fboxsep-2\fboxrule}\raggedright +Find the correct answer +\begin{enumerate} +\displayRandomizedAnswersLeftPanel +\end{enumerate} +\par\smallskip +\end{minipage}}% +\fbox{\begin{minipage}[t][3in][t]{.6\linewidth-2\fboxsep-2\fboxrule} +Simplify each of the expressions below, and find the answer in the column of answers. +\begin{multicols}{2} +\begin{enumerate} +\displayRandomizedQuestions +\end{enumerate} +\end{multicols} +\par\smallskip +\end{minipage}}% +\fbox{\begin{minipage}[t][3in][t]{.2\linewidth-2\fboxsep-2\fboxrule}\raggedright +Find the correct answer +\begin{enumerate} +\displayRandomizedAnswersRightPanel +\end{enumerate} +\par\smallskip +\end{minipage}} + +\placeMessageField{\linewidth}{50pt} + + +Print this page: \printDPS{}{11bp}\ifeqforpaper\else\cgBdry[1ex] +Try again: \resetDPS{}{11bp}\fi + +\end{document} diff --git a/macros/latex/contrib/dps/examples/basic/dps_d1_p.tex b/macros/latex/contrib/dps/examples/basic/dps_d1_p.tex new file mode 100644 index 0000000000..5fedb0eba3 --- /dev/null +++ b/macros/latex/contrib/dps/examples/basic/dps_d1_p.tex @@ -0,0 +1,238 @@ +\documentclass{article} +\usepackage[forcolorpaper]{web} +\usepackage{eforms} +\usepackage[!viewmode,!nonrandomized,showletters,showanswerkey,savedata]{dps} + +%\previewOn \pmpvOn +%\useRandomSeed{number} +\inputRandomSeed +%\useLastSeed + +\margins{.5in}{.5in}{.5in}{.5in} % left,right,top, bottom +\screensize{11in}{8.5in} % height, width + +\ifeqforpaper\setlength{\oddsidemargin}{-.5in}\fi + +\title{DPS -- Das Puzzle Spiel} +\author{D. P. Story} + +\parindent0pt +\parskip6pt + +\DeclarePuzzle +{% + {H}{H} + {e}{e} + {l}{l} + {l}{l} + {o}{o} + {}{space} + {J}{J} + {\tops{\protect\"{u}}{\ifxetex ü\else\string\374\fi}}{uml} % ü + {r}{r} + {g}{g} + {e}{e} + {n}{n} + {,}{punc} +% {}{space} % this is the end of the puzzle line, so we don't need a space + {h}{h} + {o}{o} + {w}{w} + {}{space} + {a}{a} + {r}{r} + {e}{e} + {}{space} + {y}{y} + {o}{o} + {u}{u} + {}{space} + {t}{t} + {o}{o} + {d}{d} + {a}{a} + {y}{y} + {?}{punc} +} + +\begin{Composing} + +\begin{cQ}{H} +$ -5x - 2 + 3x $ +\end{cQ} +\begin{cA}[h]{H} +$-2x-2$ +\end{cA} + +\begin{cQ}{e} +$ 2x + 5x $ +\end{cQ} +\begin{cA}{e} +$7x$ +\end{cA} + +\begin{cQ}{l} +$ 6x - 3x + 1 $ +\end{cQ} +\begin{cA}{l} +$3x+1$ +\end{cA} + +\begin{cQ}{o} +$ 5 -5x + 2x -2 $ +\end{cQ} +\begin{cA}{o} +$-3x+3$ +\end{cA} + +\begin{cQ}{J} +$ 4( x + 2 ) - 2 $ +\end{cQ} +\begin{cA}[j]{J} +$4x+6$ +\end{cA} + +\begin{cQ}{uml} +$ -3x + 2(5-2x) $ +\end{cQ} +\begin{cA}{uml} +$-7x+10$ +\end{cA} + +\begin{cQ}{r} +$ -2 ( 3x + (-4) ) + 4 $ +\end{cQ} +\begin{cA}{r} +$-6x+12$ +\end{cA} + +\begin{cQ}{g} +$ 5 ( x - (-2) ) $ +\end{cQ} +\begin{cA}{g} +$5x+10$ +\end{cA} + +\begin{cQ}{n} +$ 6x - 5 (x - 2) $ +\end{cQ} +\begin{cA}{n} +$x+10$ +\end{cA} + +\begin{cQ}{h} +$ 2 - 3(4x - 2) $ +\end{cQ} +\begin{cA}{h} +$-12x+8$ +\end{cA} + +\begin{cQ}{w} +$ 6x - 3 + x + 5 $ +\end{cQ} +\begin{cA}{w} +$7x+2$ +\end{cA} + +\begin{cQ}{a} +$ 5( -2x + 4 ) + 3x - 2 $ +\end{cQ} +\begin{cA}{a} + $-7x+18$ +\end{cA} + +\begin{cQ}{y} +$ 3(x-3) - 2(x+2) $ +\end{cQ} +\begin{cA}{y} +$x-13$ +\end{cA} + +\begin{cQ}{u} +$ -2(3-x) - 4(1-3x) $ +\end{cQ} +\begin{cA}{u} +$14x-10$ +\end{cA} + +\begin{cQ}{t} +$ x (5 +2) -3x $ +\end{cQ} +\begin{cA}{t} +$4x$ +\end{cA} + +\begin{cQ}{d} +$ 1 -2 ( 2x -4x) + 2x $ +\end{cQ} +\begin{cA}{d} +$ 6x + 1$ +\end{cA} + +\end{Composing} + + +\begin{document} + +\vspace*{-1.5in} +\begin{center}\bfseries\Large\color{blue} + \webtitle\\[1ex]\webauthor +\end{center} + +\ifeqforpaper + \textcolor{red}{\textbf{Instructions:}} Solve each of the + numbered problems in the center panel, and find the answer in either + the left or right panel. Fill in the space(s) in the puzzle + corresponding to the question number with the letter associated with + the answer. +\else + \textcolor{red}{\textbf{Instructions:}} Select a question from + the center panel by clicking its checkbox. Solve the problem and + find the answer listed in either the left or right panel. No + guessing! A maximum of $\dsthreshold$ tries on any problem + before you get $\dspenaltypoints$ penalty points ! Passing is + to complete the puzzle with only $\dspassing$ incorrect answers. +\fi + +% When for paper, we need more space for the student to write in the answer +% into the puzzle area. Here, we set size to \LARGE, and adjust the number +% of columns to 12 (it is 18 in other files of a similar layout. +% Also, one of the same character were commented out because the +% second word is at the end of the line. +\fbox{\begin{minipage}{\linewidth-2\fboxsep-2\fboxrule}\centering\LARGE +\kern1ex +\insertPuzzle{12} %{18} +\par\kern1ex +\end{minipage}} +% In the minipages below, we set the font size to \large, since this is for +% paper. +\fbox{\begin{minipage}[t][3in][t]{.2\linewidth-2\fboxsep-2\fboxrule}\raggedright +Find the correct answer +\begin{enumerate}\large +\displayRandomizedAnswersLeftPanel +\end{enumerate} +\par\smallskip +\end{minipage}}% +\fbox{\begin{minipage}[t][3in][t]{.6\linewidth-2\fboxsep-2\fboxrule} +Simplify each of the expressions below, and find the answer in the column of answers. +\begin{multicols}{2} +\begin{enumerate}\large +\displayRandomizedQuestions +\end{enumerate} +\end{multicols} +\par\smallskip +\end{minipage}}% +\fbox{\begin{minipage}[t][3in][t]{.2\linewidth-2\fboxsep-2\fboxrule}\raggedright +Find the correct answer +\begin{enumerate}\large +\displayRandomizedAnswersRightPanel +\end{enumerate} +%\par\smallskip +\end{minipage}} + +\placeMessageField{\linewidth}{50pt} + +Print this page: \printDPS{}{11bp}\ifeqforpaper\else\cgBdry[1ex] +Try again: \resetDPS{}{11bp}\fi + +\end{document} diff --git a/macros/latex/contrib/dps/examples/basic/dps_d2.tex b/macros/latex/contrib/dps/examples/basic/dps_d2.tex new file mode 100644 index 0000000000..4673d932b2 --- /dev/null +++ b/macros/latex/contrib/dps/examples/basic/dps_d2.tex @@ -0,0 +1,231 @@ +\documentclass{article} +%\usepackage[forcolorpaper]{web} +\usepackage{web} % dvips->ps2pdf|distiller, pdftex, lualatex, xelatex +\usepackage{eforms} +\usepackage[nonrandomized,showletters,savedata]{dps} + +\previewOn \pmpvOn +%\useRandomSeed{number} +\inputRandomSeed +%\useLastSeed + +\rowsep{2.5ex} + +\margins{.5in}{.5in}{.5in}{.5in} % left,right,top, bottom +\screensize{8in+4\baselineskip}{8.5in} % height, width + +\title{DPS -- Das Puzzle Spiel} +\author{D. P. Story} + +\ifeqforpaper +\setlength{\oddsidemargin}{-.5in}\fi + +\parindent0pt +\parskip6pt + +\DeclarePuzzle +{% + {H}{H} + {e}{e} + {l}{l} + {l}{l} + {o}{o} +% {,}{punc} + {J}{J} + {\tops{\protect\"{u}}{\ifxetex ü\else\string\374\fi}}{uml} % ü + {r}{r} + {g}{g} + {e}{e} + {n}{n} + {,}{punc} +% {}{space} + {h}{h} + {o}{o} + {w}{w} + {}{space} + {a}{a} + {r}{r} + {e}{e} + {}{space} + {y}{y} + {o}{o} + {u}{u} +% {}{space} + {t}{t} + {o}{o} + {d}{d} + {a}{a} + {y}{y} + {?}{punc} +} + +\begin{Composing} + +\begin{cQ}{H} +$ -5x - 2 + 3x $ +\end{cQ} +\begin{cA}[h]{H} +$-2x-2$ +\end{cA} + +\begin{cQ}{e} +$ 2x + 5x $ +\end{cQ} +\begin{cA}{e} +$7x$ +\end{cA} + +\begin{cQ}{l} +$ 6x - 3x + 1 $ +\end{cQ} +\begin{cA}{l} +$3x+1$ +\end{cA} + +\begin{cQ}{o} +$ 5 -5x + 2x -2 $ +\end{cQ} +\begin{cA}{o} +$-3x+3$ +\end{cA} + +\begin{cQ}{J} +$ 4( x + 2 ) - 2 $ +\end{cQ} +\begin{cA}[j]{J} +$4x+6$ +\end{cA} + +\begin{cQ}{uml} +$ -3x + 2(5-2x) $ +\end{cQ} +\begin{cA}{uml} +$-7x+10$ +\end{cA} + +\begin{cQ}{r} +$ -2 ( 3x + (-4) ) + 4 $ +\end{cQ} +\begin{cA}{r} +$-6x+12$ +\end{cA} + +\begin{cQ}{g} +$ 5 ( x - (-2) ) $ +\end{cQ} +\begin{cA}{g} +$5x+10$ +\end{cA} + +\begin{cQ}{n} +$ 6x - 5 (x - 2) $ +\end{cQ} +\begin{cA}{n} +$x+10$ +\end{cA} + +\begin{cQ}{h} +$ 2 - 3(4x - 2) $ +\end{cQ} +\begin{cA}{h} +$-12x+8$ +\end{cA} + +\begin{cQ}{w} +$ 6x - 3 + x + 5 $ +\end{cQ} +\begin{cA}{w} +$7x+2$ +\end{cA} + +\begin{cQ}{a} +$ 5( -2x + 4 ) + 3x - 2 $ +\end{cQ} +\begin{cA}{a} + $-7x+18$ +\end{cA} + +\begin{cQ}{y} +$ 3(x-3) - 2(x+2) $ +\end{cQ} +\begin{cA}{y} +$x-13$ +\end{cA} + +\begin{cQ}{u} +$ -2(3-x) - 4(1-3x) $ +\end{cQ} +\begin{cA}{u} +$14x-10$ +\end{cA} + +\begin{cQ}{t} +$ x (5 +2) -3x $ +\end{cQ} +\begin{cA}{t} +$4x$ +\end{cA} + +\begin{cQ}{d} +$ 1 -2 ( 2x -4x) + 2x $ +\end{cQ} +\begin{cA}{d} +$ 6x + 1$ +\end{cA} + +\end{Composing} + +\begin{document} +\begin{center}\bfseries\Large\color{blue} + \webtitle\\[1ex]\webauthor +\end{center} + +\ifeqforpaper + \textcolor{red}{\textbf{Instructions:}} Solve each of the + numbered problems in the center panel, and find the answer in either + the left or right panel. Fill in the space(s) in the puzzle + corresponding to the question number with the letter associated with + the answer. +\else + \textcolor{red}{\textbf{Instructions:}} Select a question from the + center panel by clicking its checkbox. Solve the problem and find + the answer listed in either the left or right panel. No guessing! + A maximum of $\dsthreshold$ tries on any problem before you get + $\dspenaltypoints$ penalty points ! Passing is to complete the puzzle with only + $\dspassing$ incorrect answers. +\fi + +% widths for the left (ans) and right (ques) columns +\def\answidth{1.2in} +\def\queswidth{1.8in} + +\fbox{\begin{minipage}[t][5in][t]{\answidth-2\fboxsep-2\fboxrule}\raggedright +\makebox[\linewidth]{\textbf{Answers}} +\begin{itemize} +\displayRandomizedAnswers +\end{itemize} +\par\smallskip +\end{minipage}}% +% +\fbox{\begin{minipage}[t][1in+12pt][t]{\linewidth-\answidth-\queswidth-2\fboxsep-2\fboxrule}\centering +\textbf{The Puzzle}\par\medskip +\insertPuzzle{11} +\end{minipage}}% +% +\fbox{\begin{minipage}[t][5in][t]{\queswidth-2\fboxsep-2\fboxrule} +\makebox[\linewidth]{\centering\textbf{Questions}} +\begin{enumerate} +\displayRandomizedQuestions +\end{enumerate} +\par\smallskip +\end{minipage}}% + +\nointerlineskip\vspace{-\parskip} % makes it flush with the puzzle above +\placeMessageField{\linewidth}{50pt} + +Print this page: \printDPS{}{11bp}\ifeqforpaper\else\cgBdry[1ex] +Try again: \resetDPS{}{11bp}\fi + +The answer key: \AnswerKey + +\end{document} diff --git a/macros/latex/contrib/dps/examples/basic/dps_d3.tex b/macros/latex/contrib/dps/examples/basic/dps_d3.tex new file mode 100644 index 0000000000..007e7f1f1a --- /dev/null +++ b/macros/latex/contrib/dps/examples/basic/dps_d3.tex @@ -0,0 +1,231 @@ +\documentclass{article} +\usepackage{web} +\usepackage{eforms} +\usepackage[nonrandomized,!viewmode,showletters,showanswerkey,savedata]{dps} +\usepackage{enumitem} % use to format the question numbers +\usepackage{graphicx} % use for rotating the answer key (when showanswerkey option is taken) + +\previewOn \pmpvOn +%\useRandomSeed{number} +\inputRandomSeed +%\useLastSeed + +\ltrFmtA{\textbf{\textcolor{blue}{#1}}} +\widestFmtdQNum{\textbf{00.}} +\QuesAppearance{\BC{lightgray}\textColor{blue}} +\AnsAppearance{\BC{lightgray}} +\PuzzleAppearance{\BC{green}\textColor{green}} + +\rowsep{2.5ex} + +\margins{.5in}{.5in}{24pt}{.5in} % left,right,top, bottom +\screensize{7.75in}{8.5in} % height, width + +\title{DPS -- Das Puzzle Spiel} +\author{D. P. Story} + +\parindent0pt \parskip6pt + +\nPuzzleCols{12} +\DeclarePuzzle +{% + {H}{H} + {e}{e} + {l}{l} + {l}{l} + {o}{o} + {}{space} + {J}{J} + {\tops{\protect\"{u}}{\ifxetex ü\else\string\374\fi}}{uml} % ü + {r}{r} + {g}{g} + {e}{e} + {n}{n} + {,}{punc} + {h}{h} + {o}{o} + {w}{w} + {}{space} + {a}{a} + {r}{r} + {e}{e} + {}{space} + {y}{y} + {o}{o} + {u}{u} + {}{space} + {t}{t} + {o}{o} + {d}{d} + {a}{a} + {y}{y} + {?}{punc} +} + +\begin{Composing} + +\begin{cQ}{H} +$ -5x - 2 + 3x $ +\end{cQ} +\begin{cA}[h]{H} +$-2x-2$ +\end{cA} + +\begin{cQ}{e} +$ 2x + 5x $ +\end{cQ} +\begin{cA}{e} +$7x$ +\end{cA} + +\begin{cQ}{l} +$ 6x - 3x + 1 $ +\end{cQ} +\begin{cA}{l} +$3x+1$ +\end{cA} + +\begin{cQ}{o} +$ 5 -5x + 2x -2 $ +\end{cQ} +\begin{cA}{o} +$-3x+3$ +\end{cA} + +\begin{cQ}{J} +$ 4( x + 2 ) - 2 $ +\end{cQ} +\begin{cA}[j]{J} +$4x+6$ +\end{cA} + +\begin{cQ}{uml} +$ -3x + 2(5-2x) $ +\end{cQ} +\begin{cA}{uml} +$-7x+10$ +\end{cA} + +\begin{cQ}{r} +$ -2 ( 3x + (-4) ) + 4 $ +\end{cQ} +\begin{cA}{r} +$-6x+12$ +\end{cA} + +\begin{cQ}{g} +$ 5 ( x - (-2) ) $ +\end{cQ} +\begin{cA}{g} +$5x+10$ +\end{cA} + +\begin{cQ}{n} +$ 6x - 5 (x - 2) $ +\end{cQ} +\begin{cA}{n} +$x+10$ +\end{cA} + +\begin{cQ}{h} +$ 2 - 3(4x - 2) $ +\end{cQ} +\begin{cA}{h} +$-12x+8$ +\end{cA} + +\begin{cQ}{w} +$ 6x - 3 + x + 5 $ +\end{cQ} +\begin{cA}{w} +$7x+2$ +\end{cA} + +\begin{cQ}{a} +$ 5( -2x + 4 ) + 3x - 2 $ +\end{cQ} +\begin{cA}{a} + $-7x+18$ +\end{cA} + +\begin{cQ}{y} +$ 3(x-3) - 2(x+2) $ +\end{cQ} +\begin{cA}{y} +$x-13$ +\end{cA} + +\begin{cQ}{u} +$ -2(3-x) - 4(1-3x) $ +\end{cQ} +\begin{cA}{u} +$14x-10$ +\end{cA} + +\begin{cQ}{t} +$ x (5 +2) -3x $ +\end{cQ} +\begin{cA}{t} +$4x$ +\end{cA} + +\begin{cQ}{d} +$ 1 -2 ( 2x -4x) + 2x $ +\end{cQ} +\begin{cA}{d} +$ 6x + 1$ +\end{cA} + +\end{Composing} + +\begin{document} +\begin{center}\bfseries\Large\color{blue} + \webtitle\\[1ex]\webauthor +\end{center} + +\fbox{\begin{minipage}[t][4.8in][t]{.8\linewidth-2\fboxsep-2\fboxrule} +\ifeqforpaper + \textcolor{red}{\textbf{Instructions:}} Solve each of the + numbered problems in the center panel, and find the answer in either + the left or right panel. Fill in the space(s) in the puzzle + corresponding to the question number with the letter associated with + the answer. +\else + \textcolor{red}{\textbf{Instructions:}} Select a question from + the center panel by clicking its checkbox. Solve the problem and + find the answer listed in either the left or right panel. No + guessing! A maximum of $\dsthreshold$ tries on any problem + before you get $\dspenaltypoints$ penalty points! Passing is + to complete the puzzle with only $\dspassing$ incorrect answers. +\fi +\medskip + +\begin{minipage}{\linewidth}\centering +\insertPuzzle{} % set by \nPuzzleCols in preamble +\end{minipage} +\vskip3pt +\noindent\kern-\fboxsep\rule{\linewidth+2\fboxsep}{.4pt} + + +Simplify each of the expressions below, and find the answer in the column of answers. +\begin{multicols}{2} +\begin{enumerate}[label=\textbf{\textcolor{red}{\arabic*.}}] +\displayRandomizedQuestions +\end{enumerate} +\end{multicols} +\par\smallskip +\end{minipage}}% +\fbox{\begin{minipage}[t][4.8in][t]{.2\linewidth-2\fboxsep-2\fboxrule}\raggedright +Find the correct answer +\begin{enumerate} +\displayRandomizedAnswers +\end{enumerate} +\par\smallskip +\end{minipage}} + +\placeMessageField{\linewidth}{50pt} + +Print this page: \printDPS{}{11bp}\ifeqforpaper\else\cgBdry[1ex] +Try again: \resetDPS{}{11bp}\fi + +\end{document} diff --git a/macros/latex/contrib/dps/examples/basic/dps_demo.tex b/macros/latex/contrib/dps/examples/basic/dps_demo.tex new file mode 100644 index 0000000000..f71e55e8ca --- /dev/null +++ b/macros/latex/contrib/dps/examples/basic/dps_demo.tex @@ -0,0 +1,200 @@ +\documentclass{article} +\usepackage{web} % dvips-> distiller, pdftex, lualatex, xelatex +\usepackage{eforms} +\usepackage[!viewmode,nonrandomized,showletters,showanswerkey,savedata]{dps} + +%\usepackage{graphicx} + +%\previewOn \pmpvOn +%\useRandomSeed{number} +\inputRandomSeed +%\useLastSeed + +% Uncomment these three lines to modify the appearance of the text fields and check boxes. +\PuzzleAppearance{\BC{red}\textSize{0}} % assumes xcolor loaded +\QuesAppearance{\BC{gray}} +\AnsAppearance{\BC{gray}} + +\ifeqforpaper +\setlength{\oddsidemargin}{-.5in}\fi + +\margins{.5in}{.5in}{24pt}{.5in} % left,right,top, bottom +\screensize{6.5in}{6.5in} % height, width + +\title{DPS -- Das Puzzle Spiel} +\author{D. P. Story} + +% (Optional) Try to prevent the student from saving the game (for some other student) +% we clear the game board if either student closes or save the document. +%\clearOnCloseOrSave + + + +\rheader{} + +\parindent0pt +\parskip6pt + +\DeclarePuzzle +{% + {D}{D} + {a}{a} + {s}{s} + {}{space} + {p}{p} + {u}{u} + {z}{z} + {z}{z} + {l}{l} + {e}{e} + {}{space} + {s}{s} + {p}{p} + {i}{i} + {e}{e} + {l}{l} + {!}{punc} +} + +\begin{Composing} + +\begin{cQ}{D} +$ 3(x-3) - 2(x+2) $ +\end{cQ} +\begin{cA}[d]{D} % +$x-13$ +\end{cA} + +\begin{cQ}{a} +$ 2x + 5x $ +\end{cQ} +\begin{cA}{a} +$7x$ +\end{cA} + +\begin{cQ}{s} +$ 6x - 3x + 1 $ +\end{cQ} +\begin{cA}{s} +$3x+1$ +\end{cA} + +\begin{cQ}{p} +$ 5 -5x + 2x -2 $ +\end{cQ} +\begin{cA}{p} +$-3x+3$ +\end{cA} + +\begin{cQ}{u} +$ 4( x + 2 ) - 2 $ +\end{cQ} +\begin{cA}{u} +$4x+6$ +\end{cA} + +\begin{cQ}{z} +$ -3x + 2(5-2x) $ +\end{cQ} +\begin{cA}{z} +$-7x+10$ +\end{cA} + +\begin{cQ}{l} +$ -2 ( 3x + (-4) ) + 4 $ +\end{cQ} +\begin{cA}{l} +$-6x+12$ +\end{cA} + +\begin{cQ}{e} +$ 5 ( x - (-2) ) $ +\end{cQ} +\begin{cA}{e} +$5x+10$ +\end{cA} + +\begin{cQ}{i} +$ 6x - 5 (x - 2) $ +\end{cQ} +\begin{cA}{i} +$x+10$ +\end{cA} + +%--- Begin distractions +%--- we give each of this distractions its own letter, these letters should not +%----be part of the puzzle. Distraction do not have an association question. + +\begin{cA}[w]{fake1} +$14x+10$ +\end{cA} + +\begin{cA}[\"{o}]{fake2} +$5x-1$ +\end{cA} + +\begin{cA}[m]{fake3} +$3x+3$ +\end{cA} + +\end{Composing} + + +\begin{document} + +\begin{center}\bfseries\Large\color{blue} + \webtitle\\[1ex]\webauthor +\end{center} + +\ifeqforpaper + \textcolor{red}{\textbf{Instructions:}} Solve each of the + numbered problems in the center panel, and find the answer in + either the left or right panel. Fill in the space(s) in the + puzzle corresponding to the question number with the letter + associated with the answer. +\else + \textcolor{red}{\textbf{Instructions:}} Select a question from + the center panel by clicking its checkbox. Solve the problem and + find the answer listed in either the left or right panel. No + guessing! A maximum of $\dsthreshold$ tries on any problem + before you get $\dspenaltypoints$ penalty points ! Passing is + to complete the puzzle with only $\dspassing$ incorrect answers. + \textcolor{red}{\textbf{Warning:}} Saving or closing the document + clears the puzzle. +\fi + +\def\commondepth{2in} + +\fbox{\begin{minipage}{\linewidth-2\fboxsep-2\fboxrule}\centering +\insertPuzzle{10} +\end{minipage}} +\fbox{\begin{minipage}[t][\commondepth][t]{.2\linewidth-2\fboxsep-2\fboxrule}\raggedright +Find the correct answer +\begin{enumerate} +\displayRandomizedAnswersLeftPanel +\end{enumerate} +\par\smallskip +\end{minipage}}% +\fbox{\begin{minipage}[t][\commondepth][t]{.6\linewidth-2\fboxsep-2\fboxrule} +Simplify each of the expressions below, and find the answer in the column of answers. +\begin{multicols}{2} +\begin{enumerate} +\displayRandomizedQuestions +\end{enumerate} +\end{multicols} +\par\smallskip +\end{minipage}}% +\fbox{\begin{minipage}[t][\commondepth][t]{.2\linewidth-2\fboxsep-2\fboxrule}\raggedright +Find the correct answer +\begin{enumerate} +\displayRandomizedAnswersRightPanel +\end{enumerate} +\par\smallskip +\end{minipage}} + +\placeMessageField{\linewidth}{50pt} + +Print this page: \printDPS{}{11bp}\ifeqforpaper\else\cgBdry[1ex] +Try again: \resetDPS{}{11bp}\fi + +\end{document} diff --git a/macros/latex/contrib/dps/examples/basic/dps_signin.tex b/macros/latex/contrib/dps/examples/basic/dps_signin.tex new file mode 100644 index 0000000000..8fef1f0583 --- /dev/null +++ b/macros/latex/contrib/dps/examples/basic/dps_signin.tex @@ -0,0 +1,215 @@ +\documentclass{article} +\usepackage{web} % dvips->ps2pdf|distiller->Acrobat, pdftex, lualatex, xelatex +\usepackage{eforms} +\usepackage[nonrandomized,!showletters,!showanswerkey]{dps} + +%\usepackage{graphicx} % use for rotating the answer key (when showanswerkey option is taken) + +\previewOn \pmpvOn +%\useRandomSeed{number} +\inputRandomSeed +%\useLastSeed + +\margins{.5in}{.5in}{24pt}{.5in} % left,right,top, bottom +\screensize{6.5in+3\baselineskip}{8.5in} % height, width + + +\title{DPS -- Das Puzzle Spiel} +\author{D. P. Story} + +% (Optional) Try to prevent the student from saving the game (for some other student) +% we clear the game board if either student closes or save the document. +\clearOnCloseOrSave + + +\parindent0pt \parskip6pt + +\DeclarePuzzle +{% + {D}{D} +% the next pair is grammatically incorrect, but is meant to illustrate latin-1 letters + {\tops{\"{a}}{\ifxetex ä\else\string\344\fi}}{aulm} +% {a}{a} + {s}{s} + {}{space} + {p}{p} + {u}{u} + {z}{z} + {z}{z} + {l}{l} + {e}{e} +% {}{space} + {s}{s} + {p}{p} + {i}{i} + {e}{e} + {l}{l} + {!}{punc} +} + +\begin{Composing} + +\begin{cQ}{D} +$ 3(x-3) - 2(x+2) $ +\end{cQ} +\begin{cA}[d]{D} % +$x-13$ +\end{cA} + +\begin{cQ}{aulm} +$ 2x + 5x $ +\end{cQ} +\begin{cA}{aulm} +$7x$ +\end{cA} + +\begin{cQ}{s} +$ 6x - 3x + 1 $ +\end{cQ} +\begin{cA}{s} +$3x+1$ +\end{cA} + +\begin{cQ}{p} +$ 5 -5x + 2x -2 $ +\end{cQ} +\begin{cA}{p} +$-3x+3$ +\end{cA} + +\begin{cQ}{u} +$ 4( x + 2 ) - 2 $ +\end{cQ} +\begin{cA}{u} +$4x+6$ +\end{cA} + +\begin{cQ}{z} +$ -3x + 2(5-2x) $ +\end{cQ} +\begin{cA}{z} +$-7x+10$ +\end{cA} + +\begin{cQ}{l} +$ -2 ( 3x + (-4) ) + 4 $ +\end{cQ} +\begin{cA}{l} +$-6x+12$ +\end{cA} + +\begin{cQ}{e} +$ 5 ( x - (-2) ) $ +\end{cQ} +\begin{cA}{e} +$5x+10$ +\end{cA} + +\begin{cQ}{i} +$ 6x - 5 (x - 2) $ +\end{cQ} +\begin{cA}{i} +$x+10$ +\end{cA} + +%--- Begin distractions +%--- we give each of this distractions its own letter, these letters should not +%----be part of the puzzle. Distraction do not have an association question. + +\begin{cA}[w]{fake1} +$14x+10$ +\end{cA} + +\begin{cA}[\"{o}]{fake2} +$5x-1$ +\end{cA} + +\begin{cA}[m]{fake3} +$3x+3$ +\end{cA} + +\end{Composing} + +\begin{insDLJS}{dpsjs}{DPS: Advance Features Demo JS} +function afterCorrectChoiceHook() +{ + // The JavaScript variable activeQuestion is the field name of the + // current question + console.println( "afterCorrectChoiceHook(): "+activeQuestion); +} +function dpsFinishedHook() +{ + // The JavaScript variable activeQuestion is the field name of the + // current question + console.println("dpsFinishedHook fired"); +} +\end{insDLJS} + +% whether the student is required to sign-in prior to working on the puzzles depends +% on whether the text field named dpsSignInName is present. +\def\SignIn{\underbar{\textbf{Name:} \textField[\BC{}]{dpsSignInName}{1.5in}{11bp}}} + +\reversemarginpar + +\begin{document} +\begin{center}\bfseries\Large\color{blue} + \webtitle\\[1ex] +\makebox[\linewidth]{% +% comment out next line so sign-in no longer required + {\makebox[0pt][l]{\normalcolor\normalsize\SignIn}}\relax + \hfill\webauthor\hfill +} +\end{center} + +\ifeqforpaper + \textcolor{red}{\textbf{Instructions:}} Solve each of the + numbered problems in the center panel, and find the answer in + either the left or right panel. Fill in the space(s) in the + puzzle corresponding to the question number with the letter + associated with the answer. +\else + \textcolor{red}{\textbf{Instructions:}} Select a question from + the center panel by clicking its checkbox. Solve the problem and + find the answer listed in either the left or right panel. No + guessing! A maximum of $\dsthreshold$ tries on any problem + before you get $\dspenaltypoints$ penalty points ! Passing is + to complete the puzzle with only $\dspassing$ incorrect answers. + \textcolor{red}{\textbf{Warning:}} Saving or closing the document + clears the puzzle. +\fi + +\def\commondepth{2in} + +\fbox{\begin{minipage}{\linewidth-2\fboxsep-2\fboxrule}\centering +\insertPuzzle{10} +\end{minipage}} +\fbox{\begin{minipage}[t][\commondepth][t]{.2\linewidth-2\fboxsep-2\fboxrule}\raggedright +Find the correct answer +\begin{enumerate} +\displayRandomizedAnswersLeftPanel +\end{enumerate} +\par\smallskip +\end{minipage}}% +\fbox{\begin{minipage}[t][\commondepth][t]{.6\linewidth-2\fboxsep-2\fboxrule} +Simplify each of the expressions below, and find the answer in the column of answers. +\begin{multicols}{2} +\begin{enumerate} +\displayRandomizedQuestions +\end{enumerate} +\end{multicols} +\par\smallskip +\end{minipage}}% +\fbox{\begin{minipage}[t][\commondepth][t]{.2\linewidth-2\fboxsep-2\fboxrule}\raggedright +Find the correct answer +\begin{enumerate} +\displayRandomizedAnswersRightPanel +\end{enumerate} +\par\smallskip +\end{minipage}} + +\textField[\Ff\FfMultiline]{report}{\linewidth}{50pt} + +Print this page: \printDPS{}{11bp}\cgBdry[1ex] +Try again: \resetDPS{}{11bp} + +\end{document} diff --git a/macros/latex/contrib/dps/examples/basic/dps_str_cus.def b/macros/latex/contrib/dps/examples/basic/dps_str_cus.def new file mode 100644 index 0000000000..5567d5a482 --- /dev/null +++ b/macros/latex/contrib/dps/examples/basic/dps_str_cus.def @@ -0,0 +1,46 @@ +%% +%% This is file `dps_str_us.def', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% dps.dtx (with options: `copyright,english') +%% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% dps.sty package, 2006-10-06 %% +%% Copyright (C) 2006 D. P. Story %% +%% dpstory@acrotex.net %% +%% %% +%% This program can redistributed and/or modified under %% +%% the terms of the LaTeX Project Public License %% +%% Distributed from CTAN archives in directory %% +%% macros/latex/base/lppl.txt; either version 1 of the %% +%% License, or (at your option) any later version. %% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\def\chooseQ{"You must choose a question to answer before you answer!"} +\def\triedTooMuch{"You have tried this problem too many times, I'm adding " + + \dspenaltypoints + + " points, and resetting the penalty counter. Bad boy/girl!"} +\def\congratFinished{"Congratulations! You finished the puzzle" + +((nMissed==0) ? " without missing a single problem, amazing!" + : ", but you missed " + nMissed + " questions in the process!")} +\def\regretPleased{(( nMissed > nPassing ) + ? "I regret to report that you did not pass the test because you missed too many questions." + : "I am pleased to report that you passed the test, you are a Bible wizard!")} +\def\reportPenaltyPoints{"The number of penalty points is " + nPenaltyPoints +"."} +\def\finalPenaltyScore{"Final penalty score is " + nTotalPenaltyPoints + ". "} +\def\aPenaltyScale{[-1,0], [0,4], [4, 10], [10,25], [25,5000]} +\def\aPenaltyMsgs +{% + "Perfect!", + "Very nice performance!", + "This is not looking good. Perhaps a Bible study is in order!", + "Are you trying? These are not obscure passages!!", + "You'd better study and pray more!" +} +\dlJSStr[noquotes]{\signInMsg}{% + You must enter your name in the field at the top of + the page to get credit for this assignment.} +\endinput +%% +%% End of file `dps_str_us.def'. diff --git a/macros/latex/contrib/dps/examples/basic/dps_test.tex b/macros/latex/contrib/dps/examples/basic/dps_test.tex new file mode 100644 index 0000000000..c7c67d202c --- /dev/null +++ b/macros/latex/contrib/dps/examples/basic/dps_test.tex @@ -0,0 +1,226 @@ +\documentclass{article} +\usepackage{web} % dvips->ps2pdf|distiller, pdftex, lualatex, xelatex +\usepackage{eforms} +\usepackage[!viewmode,nonrandomized,!showletters,!showanswerkey,savedata]{dps} + +%\usepackage{graphicx} % use for rotating the answer key (when showanswerkey option is taken) + +%\previewOn \pmpvOn +%\useRandomSeed{number} +\inputRandomSeed +%\useLastSeed + +\margins{.5in}{.5in}{24pt}{.5in} % left,right,top, bottom +\screensize{6.5in+3\baselineskip}{8.5in} % height, width + + +\title{DPS -- Das Puzzle Spiel} +\author{D. P. Story} + +% (Optional) Try to prevent the student from saving the game (for some other student) +% we clear the game board if either student closes or save the document. +\clearOnCloseOrSave + + +\parindent0pt \parskip6pt + +\DeclarePuzzle +{% + {H}{H} + {e}{e} + {l}{l} + {l}{l} + {o}{o} + {}{space} +% {!}{punc} + {J}{J} + {\tops{\protect\"{u}}{\ifxetex ü\else\string\374\fi}}{uml} % ü + {r}{r} + {g}{g} + {e}{e} + {n}{n} + {,}{punc} + {}{cr} +% {}{space} + {h}{h} + {o}{o} + {w}{w} + {}{space} + {a}{a} + {r}{r} + {e}{e} + {}{space} + {y}{y} + {o}{o} + {u}{u} + {}{space} + {t}{t} + {o}{o} + {d}{d} + {a}{a} + {y}{y} + {?}{punc} +} + +\begin{Composing} + +\begin{cQ}{H} +$ 1 + 1 $ +\end{cQ} +\begin{cA}{H} +$2$ +\end{cA} + +\begin{cQ}{e} +$ 2x + 5x $ +\end{cQ} +\begin{cA}{e} +$7x$ +\end{cA} + +\begin{cQ}{l} +$ 6x - 3x + 1 $ +\end{cQ} +\begin{cA}{l} +$3x+1$ +\end{cA} + +\begin{cQ}{o} +$ 5 -5x + 2x -2 $ +\end{cQ} +\begin{cA}{o} +$-3x+3$ +\end{cA} + +\begin{cQ}{J} +$ 4( x + 2 ) - 2 $ +\end{cQ} +\begin{cA}{J} +$4x+6$ +\end{cA} + +\begin{cQ}{uml} +$ -3x + 2(5-2x) $ +\end{cQ} +\begin{cA}{uml} +$-7x+10$ +\end{cA} + +\begin{cQ}{r} +$ -2 ( 3x + (-4) ) + 4 $ +\end{cQ} +\begin{cA}{r} +$-6x+12$ +\end{cA} + +\begin{cQ}{g} +$ 5 ( x - (-2) ) $ +\end{cQ} +\begin{cA}{g} +$5x+10$ +\end{cA} + +\begin{cQ}{n} +$ 6x - 5 (x - 2) $ +\end{cQ} +\begin{cA}{n} +$x+10$ +\end{cA} + +\begin{cQ}{h} +$ 15 + 2 $ +\end{cQ} +\begin{cA}{h} +$17$ +\end{cA} + +\begin{cQ}{w} +$ 6x - 3 + x + 5 $ +\end{cQ} +\begin{cA}{w} +$7x+2$ +\end{cA} + +\begin{cQ}{a} +$ 5( -2x + 4 ) + 3x - 2 $ +\end{cQ} +\begin{cA}{a} + $-7x+18$ +\end{cA} + +\begin{cQ}{y} +$ 3(x-3) - 2(x+2) $ +\end{cQ} +\begin{cA}{y} +$x-13$ +\end{cA} + +\begin{cQ}{u} +$ -2(3-x) - 4(1-3x) $ +\end{cQ} +\begin{cA}{u} +$14x-10$ +\end{cA} + +\begin{cQ}{t} +$ \sin( \pi/2) $ +\end{cQ} +\begin{cA}{t} +$1$ +\end{cA} + +\begin{cQ}{d} +$ \cos( \pi/4 ) $ +\end{cQ} +\begin{cA}{d} +$\sqrt{2}/2$ +\end{cA} + +\end{Composing} + +\begin{document} +\begin{center}\bfseries\Large\color{blue} + \webtitle\\[1ex]\webauthor +\end{center} + +\textcolor{red}{\textbf{Instructions:}} Select a question from the +center panel by clicking its checkbox. Solve the problem and find +the answer listed in either the left or right panel. No guessing! +A maximum of $\dsthreshold $ tries on any problem before you get +penalty points! Passing is to complete the puzzle with only +$\dspassing$ incorrect answers. + + +\fbox{\begin{minipage}{\linewidth-2\fboxsep-2\fboxrule}\centering +\insertPuzzle{18} +\end{minipage}} +\fbox{\begin{minipage}[t][3in][t]{.2\linewidth-2\fboxsep-2\fboxrule}\raggedright +Find the correct answer +\begin{itemize} +\displayRandomizedAnswersLeftPanel +\end{itemize} +\par\smallskip +\end{minipage}}% +\fbox{\begin{minipage}[t][3in][t]{.6\linewidth-2\fboxsep-2\fboxrule} +Simplify each of the expressions below, and find the answer in the column of answers. +\begin{multicols}{2} +\begin{enumerate} +\displayRandomizedQuestions +\end{enumerate} +\end{multicols} +\par\smallskip +\end{minipage}}% +\fbox{\begin{minipage}[t][3in][t]{.2\linewidth-2\fboxsep-2\fboxrule}\raggedright +Find the correct answer +\begin{itemize} +\displayRandomizedAnswersRightPanel +\end{itemize} +\par\smallskip +\end{minipage}} + +\textField[\Ff\FfMultiline]{report}{\linewidth}{50pt} + +Print this page: \printDPS{}{11bp}\cgBdry[1ex] +Try again: \resetDPS{}{11bp} + +\end{document} diff --git a/macros/latex/contrib/dps/examples/basic/stat_match1-print.tex b/macros/latex/contrib/dps/examples/basic/stat_match1-print.tex new file mode 100644 index 0000000000..4b80812068 --- /dev/null +++ b/macros/latex/contrib/dps/examples/basic/stat_match1-print.tex @@ -0,0 +1,308 @@ +\documentclass{article} +% aeb_pro not required for pdflatex, lualatex, or xelatex +% If you don't have acrobat, no harm is done. For the +% dvips -> distiller workflow, aeb_pro is required. +\usepackage[web={extended,forcolorpaper},eforms,useacrobat]{aeb_pro} %,forcolorpaper +% for non-pdfmark workflow, the alternative is to use +% the following two packages instead. +%\usepackage[extended]{web} +%\usepackage{eforms} +\usepackage[% + !nonrandomized, + showletters, + !showanswerkey, + savedata, + lang=custom, +]{dps} + +%\usepackage{graphicx} + +\ifeqforpaper\setlength{\oddsidemargin}{-.5in}\fi + + +%\previewOn \pmpvOn +%\useRandomSeed{number} +\inputRandomSeed +%\useLastSeed + +\margins{.5in}{.5in}{.5in}{.5in} % left,right,top, bottom +\screensize{11in}{8.5in} % height, width + +\DeclareDocInfo +{ + title=Stat Matching Game, + author=D. P. Story, + university=NORTHWEST FLORIDA STATE COLLEGE\\Department of Mathematics, + email=storyd@nwfsc.edu, + subject=First extra credit assignment, + keywords={statistics, matching, game}, + talksite=http://www.acrotex.net, + copyrightyears=2006-\the\year, +} +\talkdateLabel{Version} +\version{1.0}\nocopyright + +\everyTextField{\textFont{TiRo}} + +% Try to prevent the student from saving the game (for some other student) +% we clear the game board if either student closes or save the document. +\clearOnCloseOrSave + +\optionalPageMatter +{% + \par\minimumskip\vspace{\stretch{1}} + \begin{center} + \fcolorbox{blue}{white}{% + \begin{minipage}{.75\linewidth}\parskip3pt + \textbf{\textcolor{red}{Instructions: }} + On the next page of this document is a little matching game covering + some of the statistical concepts discussed in class. + \begin{itemize} + \item When you turn to the next page, type in your name in the name field + provided near the top of the page. + \item Follow the instructions on that page on how to answer the questions. + \item After you have correctly answered the last question correctly, a message + appears at the bottom of the page with an evaluation of your effort. + \item Print the completed page and turn it in to me at the next class meeting + for (extra) credit. + \end{itemize} + \textbf{\textcolor{red}{Warning:}} The puzzle board is cleared if this document + is closed or saved. Complete the puzzle in one sitting, then print the results. + \end{minipage}} + \end{center} +} + +\rheader{} + +\parindent0pt +\parskip6pt + +\DeclarePuzzle +{% + {R}{R} + {o}{o} + {n}{n} + {a}{a} + {l}{l} + {d}{d} + {}{space} + {F}{F} + {i}{i} + {s}{s} + {h}{h} + {e}{e} + {r}{r} +} + + +%\writeComposingEnv + +\begin{Composing} + +\begin{cQ}{R} +The two branches of statistics +are descriptive and \underbar{\hspace{.5in}}. +\end{cQ} +\begin{cA}[r]{R} +inferential +\end{cA} + +\begin{cQ}{o} +\underbar{\hspace*{.5in}} is the +science of collecting, organizing, analyzing and interpreting data +in order to make decisions. +\end{cQ} +\begin{cA}{o} +statistics +\end{cA} + +\begin{cQ}{n} +A frequency distribution is an example of +\underbar{\hspace*{.5in}} +\end{cQ} +\begin{cA}{n} +data reduction +\end{cA} + +\begin{cQ}{a} +Find the median of the following +data:\par +\begin{tabular}{r|ll} +2&2334&\kern6pt Key $2\,|\,4=24$\\ +2&57888\\ +3&344\\ +3&55666\\ +4&0023\\ +4&566 +\end{tabular} +\end{cQ} +\begin{cA}{a} +$34.5$ +\end{cA} + +\begin{cQ}{l} +Given that $n=5$, +$\sum x = 26$ $\sum x^2 = 154$, compute $\bar x$ and $s$. +\end{cQ} +\begin{cA}{l} +$5.2$ and $2.17$ +\end{cA} +\begin{cQ}{d} +A \underbar{\hspace{.5in}} is a sample +in which every possible sample of the same size has the same chance +of being selected. +\end{cQ} +\begin{cA}{d} +simple random sample +\end{cA} + +\begin{cQ}{F} +The number \underbar{\hspace{.5in}} divides a data set in such a way that +$75\%$ of the data is less than it and $25\%$ of the data is greater +than it. +\end{cQ} +\begin{cA}[f]{F} +$Q_3$ +\end{cA} + +\begin{cQ}{i} +\underbar{\hspace{.5in}} is the measure of central tendency +that is sensitive to outliers in the data set. +\end{cQ} +\begin{cA}{i} +sample mean +\end{cA} + +\begin{cQ}{s} +$\mu$ refers to the \underbar{\hspace{.5in}} +\end{cQ} +\begin{cA}{s} +population mean +\end{cA} +\begin{cQ}{h} +In a data set with sample +mean of $4.5$ and sample standard deviation of $1.5$, the $z$-score +of $x = 4$ is $ z = \underbar{\hspace{.5in}}$. +\end{cQ} +\begin{cA}{h} +$-0.33$ +\end{cA} + +\begin{cQ}{e} +If a $z$-score of a data +entry is negative, then that data entry is +\underbar{\hspace{.5in}} than mean. +\end{cQ} +\begin{cA}{e} +less +\end{cA} + +\begin{cQ}{r} +The mean value of land and building +per acre from a sample of farms is $\$1200$ with a standard +deviation of $\$350$. Assuming the distribution of the data set is +bell shaped, approximately what percentage of the sample of farmers +had value of land and building (per acre) between $\$1200$ and +$\$1550$? +\end{cQ} +\begin{cA}{r} +$34$ +\end{cA} + +%------------------- + +\begin{cA}[b]{fake1} +$5.2$ and $1.94$ +\end{cA} + +\begin{cA}[c]{fake2} +sample +\end{cA} + +\begin{cA}[d]{fake3} +$0.33$ +\end{cA} + +\begin{cA}[g]{fake4} +greater +\end{cA} + +\begin{cA}[j]{fake5} +median +\end{cA} + +\begin{cA}[k]{fake6} +mode +\end{cA} + +\begin{cA}[m]{fake7} +$Q_1$ +\end{cA} + +\begin{cA}[p]{fake8} +variance +\end{cA} + +\begin{cA}[t]{fake9} +$35$ +\end{cA} + +\end{Composing} + +\begin{document} + +%\maketitle + + +\def\answidth{1.7in} +\def\queswidth{2in} + +\ifeqforpaper +\vspace*{-4\baselineskip}\fi + +{\bfseries\noindent +\makebox[\textwidth]{\rlap{STA 2023}\hfill\textcolor{blue}{\webtitle}\hfill\llap{Statistics}} +\makebox[\textwidth]{\rlap{\webauthor}\hfill\textcolor{blue}{Descriptive Statistics}\hfill\llap{Fall 2006}}} + +\underbar{\textbf{Name:} \textField[\BC{}]{dpsSignInName}{2in}{11bp}} + +\textcolor{red}{\textbf{Instructions:}} Select a question from the +left panel by clicking its checkbox. Find the answer listed in +either the right panel. No guessing! A maximum of $\dsthreshold$ +tries on any problem before you get $\dspenaltypoints$ penalty +points! Passing is to complete the puzzle with only $\dspassing$ +incorrect answers. + +\fbox{\begin{minipage}{\linewidth-2\fboxsep-2\fboxrule} +Who is considered the founder of modern statistics? The answer is +hidden in the puzzle below.\par\smallskip +\begin{center} +\insertPuzzle{13} +\end{center} +\kern3pt +\end{minipage}}% + +\fbox{\begin{minipage}[t][5.25in+3\baselineskip][t]{\linewidth-\answidth-2\fboxsep-2\fboxrule}\raggedright +\makebox[\linewidth]{\centering\textbf{Questions}} +\begin{enumerate} +\displayRandomizedQuestions +\end{enumerate} +\end{minipage}}% +% +\fbox{\begin{minipage}[t][5.25in+3\baselineskip][t]{\answidth-2\fboxsep-2\fboxrule}\raggedright +\makebox[\linewidth]{\textbf{Answers}} +\begin{itemize}\itemsep0pt +\displayRandomizedAnswers +\end{itemize} +\par\smallskip +\end{minipage}}% + +\ifeqforpaper\else +\textbf{\textcolor{red}{Important:}} Don't forget to print the puzzle page and to hand it in to me. + +Print this page: \printDPS{}{11bp}\cgBdry[1ex] +Try again: \resetDPS{}{11bp} +\fi + + +\end{document} |