24-Point Game 74 Correct Refresh i You got it OK Enter an expression: 13 - 5) * ( 10 -7| Verify 74 24-Point Game Refresh 7A ILurrel X You have to use the four cards shown OK Enter an expression: 13 +5 +7 -1 Verify 76 24-Point Game Incorrect Refresh X 5+7+13 + 10 is not 24 OK Enter an expression: 5+7+ 13 + 10 Verify
The 24-point card game involves picking any four cards from 52 cards, as shown in Figure 10.20. Note that the jokers are excluded. Each card represents a number. An ace, king, queen, and jack represent 1, 13, 12, and 11, respectively. Enter an expression that uses the four numbers from the four selected cards. Each card number can be used only once in each expression, and each card must be used. You can use the operators ( *, and /) and parentheses in the expression. The expression must evaluate to 24. After entering the expression, click the Verify button to check whether the numbers in the expression are currently selected and whether the result of the expression is correct. Display the verification in a dialog box. You can click the Refresh button to get another set of four cards. Assume that
images are stored in files named 1.gif, 2.gif, ..., 52.gif, in the order of spades, hearts, diamonds, and clubs. So, the first 13 images are for spades 1, 2, 3, ..., and 13.
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images
What is Toolkit.PostfixNotation? Is this a separate class?