Hi again--
Okay, I found the begintable() sub, and I got the solution
below, but it prints a column of zeros before printing the
table. Anyone know why, and what to do about it?
Thanks,
Steve
=============================================
# initialize DOCUMENT();
loadMacros(PG.pl, PGbasicmacros.pl, PGchoicemacros.pl, PGanswermacros.pl, PGauxiliaryFunctions.pl, PGgraphmacros.pl);
# Do NOT show partial correct answers $showPartialCorrectAnswers = 0;
TEXT(beginproblem());
BEGIN_TEXT $PAR Complete the following truth table.$BR \{begintable(3)\} \{row("\\(p\\)","\\(q\\)","\\(p\\to q\\)")\} \{row("\\(T\\)","\\(T\\)",ans_rule(1))\} \{ANS(str_cmp("T"));\} \{row("\\(T\\)","\\(F\\)",ans_rule(1))\} \{ANS(str_cmp("F"));\} \{row("\\(F\\)","\\(T\\)",ans_rule(1))\} \{ANS(str_cmp("T"));\} \{row("\\(F\\)","\\(F\\)",ans_rule(1))\} \{ANS(str_cmp("T"));\}
\{endtable\} $PAR END_TEXT
ENDDOCUMENT();
<| Post or View Comments |>
|