Where can i find the java program to sodoku and goFigure puzzle?
java1285 asked:
I have a puzzle! any one knows what this puzzle is called??
You will be provided with five numbers in the command line. The first four numbers are operands of the expression,
and the fifth is the result. Use any mathematical operator with the supplied operands to achieve the result.
This entry was posted
on Monday, September 22nd, 2008 at 3:00 pm and is filed under Sudoku FAQ.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.
I have a puzzle! any one knows what this puzzle is called??
You will be provided with five numbers in the command line. The first four numbers are operands of the expression,
and the fifth is the result. Use any mathematical operator with the supplied operands to achieve the result.
The Program should be :
- Able to accept 5 numerical values from command line, separated by spaces.
- First four numbers will be the operands.
- The operands should be used in the same order in which they are specified on the command line.
- You can use any of the mathematical operators (+, -, *, /) to obtain the fifth number.
Note:
l Use any operand only once.
l The order of operands is fixed. (As per the input from command line).
l Possible operators are : +, -, *, /
l Expression is to be evaluated in strict left to right manner.
l You can use the same operator multiple times.
Example: $ java GoFigure 6 7 4 1 47
6 * 7 + 4 + 1 = 47
Can any 1 pls help me to find java pgmming logic for this?
Gresham







Leave a Reply