1 armchair
1 armchair = 12 livres
12 pounds of flour = 3 livres
"; $totalvalue = $value * $answer; $targetvalue = $correct * $value; if (1 == $answer) { $unit = $unitSingular; } else { $unit = $unitPlural; } if ($correct == $answer) { echo "
Correct!, it will take $correct $unit $tradeItem at $value per $unitSingular to equal $targetvalue livres.
\n"; } else { if ($answer < $correct) { $txt = "you need more"; } else { $txt = "that's too many"; } echo "
I'm sorry, $txt. $answer $unit $tradeItem is worth $totalvalue livres. Try again!
"; } } else { if (strlen($answer) > 0) { $answer = filterBadWords($answer); echo "
You typed in \"$answer\", which confuses me, I can only handle numbers. Please try again.
"; } else { echo "
Please type a number into the form
"; } } } ?>
How many pounds of flour would you need to trade for 1 armchair?
Your Answer:
Press
to submit your answer.
Livre's Worth
©
Illinois State Museum
31-Dec-96