");
print("
Quiz results
");
print("");
$q1 = $_REQUEST["quest1"];
$q2 = $_REQUEST["quest2"];
$q3 = $_REQUEST["quest3"];
$q4 = $_REQUEST["quest4"];
$wr = 4;
if($q1 == "no")
{
$wr--;
echo("You got question one wrong. The correct answer was (A)2
");
}
if($q2 == "no")
{
$wr--;
echo("You got question two wrong. The correct answer was (B)Ottawa
");
}
if($q3 == "no")
{
$wr--;
echo("You got question three wrong. The correct answer was (C)03/01/07
");
}
if($q4 == "no")
{
$wr--;
echo("You got question four wrong. The correct answer was (D)Feathers
");
echo("Gold and other precious metals and gems are weighed on the Troy standard,
while feathers are weighed on the Avoirdupois standard. A pound on the Avoirdupois
scale is 453.59grams while a pound on the Troy scale is 373.24grams.
");
}
echo ("");
if($wr == 4)
echo("You got 100% of the questions right.");
else if($wr == 3)
echo("You got 75% of the questions right.");
else if($wr == 2)
echo("You got 50% of the questions right.");
else if($wr == 1)
echo("You got 25% of the questions right.");
else if ($wr == 0)
echo("You missed all the questions.");
echo("