FullProblemTemplate

From WeBWorK_wiki
Jump to navigation Jump to search

Insert Title Here

This PG code shows how to ...


Templates by Subject Area

PG problem file Explanation

Problem tagging data

Problem tagging:

DOCUMENT();

loadMacros('PGstandard.pl','MathObjects.pl','PGML.pl');

TEXT(beginproblem());

Initialization:

Context("Numeric");

$answer = Compute("1");

Setup:

BEGIN_PGML
Question text

Answer = [__]{$answer}

END_PGML

Main Text:

BEGIN_PGML_SOLUTION
Solution explanation goes here.
END_PGML_SOLUTION

ENDDOCUMENT();

Solution:

Templates by Subject Area