roles) || in_array('administrator', $user->roles) || in_array('admin',$user->roles ) ) { ?>
probname); ?>
Topic Classification: nid, "Topic Classification"); ?> Tags: nid, "Problem Tag");?>
Topics: nid, "Topics"); ?> Prerequisites: nid, "Prerequisites"); ?>
Supplies: nid, "Supplies"); ?> Pedagogy: nid, "Pedagogy"); ?>

1-2
3-4
5-6
7-8

9-10

11-12
13-14
Solution: nid, "Solution"); ?>
Problem

Find the number of poker hands of each type. For the
purposes of this problem, a poker hand consists of 5 cards chosen
from a standard pack of 52 (no jokers). Also for the purposes of
this problem, the ace can only be a high card. In other words, the
card sequence $A\clubsuit$, $2\diamondsuit$, $3\diamondsuit$,
$4\spadesuit$, $5\heartsuit$ is not a straight, since the ace is
a high card only.

Here are the definitions of the hands:

$\textbf{ Royal flush:}$ $10$ through $A$ in the same suit.

Example: $10\spadesuit$, $J\spadesuit$, $Q\spadesuit$,
$K\spadesuit$, $A\spadesuit$.

$\textbf{Straight flush:}$ 5 cards in sequence in the same suit, but not
a Royal flush.

Example: $4\diamondsuit$, $5\diamondsuit$, $6\diamondsuit$,
$7\diamondsuit$, $8\diamondsuit$.

$\textbf{Four of a kind:}$ Four cards of the same rank.

Example: $Q\spadesuit$, $Q\heartsuit$, $Q\diamondsuit$,
$Q\clubsuit$, $7\spadesuit$.

$\textbf{ Full house:}$ Three cards of one rank and two of another.

Example: $3\spadesuit$, $3\diamondsuit$, $3\clubsuit$,
$9\heartsuit$, $9\diamondsuit$.

$\textbf{ Flush:}$ Five cards in the same suit that are not in sequence.

Example: $3\clubsuit$, $4\clubsuit$, $5\clubsuit$,
$6\clubsuit$, $8\clubsuit$.

$\textbf{ Straight:}$ Five cards in sequence that are not all in the
same suit.

Example: $6\clubsuit$, $7\clubsuit$, $8\diamondsuit$,
$9\spadesuit$, $10\clubsuit$.

$\textbf{ Three of a kind:}$ Three cards of the same rank; the others of
different rank.

Example: $J\clubsuit$, $J\diamondsuit$, $J\spadesuit$,
$7\diamondsuit$, $K\heartsuit$.

$\textbf{ Two pairs:}$ Two pairs of cards.

Example: $5\heartsuit$, $5\spadesuit$, $8\diamondsuit$,
$8\clubsuit$, $A\spadesuit$.

$\textbf{ Pair:}$ A single pair of cards.

Example: $3\clubsuit$, $3\diamondsuit$, $5\spadesuit$,
$9\diamondsuit$, $Q\diamondsuit$.

$\textbf{ Bust:}$ A hand with none of the above.

Example: $2\clubsuit$, $4\spadesuit$, $6\diamondsuit$,
$8\heartsuit$, $10\clubsuit$.

Details
Authors
nid); while ($data = db_fetch_object($authorresult)) { $authorfirstname =$data->firstname; $authorlastname =$data->lastname; $authors =$authorfirstname . ' ' . $authorlastname; print$authors; ?>
References
nid); if (mysql_num_rows($refresult) > 0 ) { ?> nmcreferenceid;$referenceauthor = $data->author;$referencetitle = $data->title;$referenceurl = $data->url; ?> 0 ) { print '  Reference Author Reference Title Reference URL '; } ?> nid);$totalSets = mysql_num_rows($setsResult); if ($totalSets > 0) { ?>
Problem Sets This Problem Belongs to:
parent_nid; ?> Set:
VARIABLES
nid, 1); while ($data = db_fetch_object($variablesresult)) { $variable =$data->elementdata; ?> •

DEFINITIONS
nid); while ($data = db_fetch_object($defresult)) { $definitionid =$data->nmcdefinitionid; $definition =$data->definition; $definitionname =$data->definitionname; ?> •