##sample problem
DOCUMENT();
loadMacros( "PG.pl",
"PGbasicmacros.pl",
"PGauxiliaryFunctions.pl",
"PGchoicemacros.pl",
"PGanswermacros.pl",
);
TEXT(beginproblem());
$showPartialCorrectAnswers = 1;
$showHint =0;
$fx = random( 5.05 , 6.0 , 0.02 ) ;
$fy = random( 7.07 , 8.0 , 0.02 ) ;
$ansxy = sqrt($fx * $fx + $fy * $fy);
$anscm = $ansxy*100;
BEGIN_TEXT
This problem demonstrates how WeBWorK handles
numerical answers involving units. WeBWorK can handle all units that
are used in elementary physics courses.
See \{ htmlLink("http://webwork.math.rochester.edu/phy121/help_units.html","answers with units") \}
for more details. $PAR
Two perpendicular sides of a triangle are $fx m and
$fy m long respectively.
What is the length of the third side of the triangle?$BR$BR
You can answer this in terms of m's, cm's, km's, in's, ft, etc. but you must enter the units. $BR$BR
Check "Show Hint" and then "Submit Answer" if you don't remember the Pythagorean theorem.
END_TEXT
HINT(EV2(<