# simple java program 24 game

The 24 Game is an arithmetical game in which the objective is to find a way to manipulate four integers so that the end result is 24. Addition, subtraction, multiplication, or division in any order of the numbers may be used to make the four digits operations from one to nine equal 24.

The rules are simple: you have to use each number only once and only the 4 numbers that were read from the user to find one equation to obtain 24.

For example, for the numbers 4,7,8,8, a possible solution is: (7-(8/8))*4=24.

Most sets of 4 digits can be used in multiple equations that result in 24: for example the input: 2, 2, 4 and 7 can be used in multiple ways to obtain 24:

2+2*(4+7) = 24

2+2*(7+4) = 24

(2+2)*7-4 = 24

(2*2)*7-4 = 24

2*(2*7)-4 = 24

There are also combinations of 4 numbers that cannot result into any equation equal with 24. For example 1,1,1,1. In this case, your program should return that there is no possible equation equal with 24.

Note: Although we will enter 4 integers between 1 and 9, we will use doubles to compute all the operations. For example, the numbers 3,3,8,8 can be combined into the formula: 8/(3-8/3) = 24.

Workflow: Your program should read the 4 numbers from the user and output a formula that results in 24. The algorithm should enumerate all the possible orders of 4 numbers, all the possible combinations and all the possible formulas. There is no required GUI for this project.

( 1 comentário ) United States

ID do Projeto: #6806107

## Concedido a:

it2051229

Hi, I am placing my bid on your project because I have read the requirements and I am confident enough with my Java and algorithm skills. I am focused mostly on doing computer science work here in freelancer.com and I Mais

\$30 USD em 1 dia
(166 Comentários)
6.0

## 8 freelancers estão ofertando em média \$99 para esse trabalho

eperfections

Dear Sir, I am #1 Java programmer on this site. I did 600+ projects and assignment in java. I love to do this simple game project. Please award me. Thanks

\$34 USD em 1 dia
(187 Comentários)
6.8
choejong222

Hello hiring manager, I have been working on ORACLE 11g, PHP, Joomla, Wordpress, ASP.Net (C# and VB) technologies, HTML/DHTML, CSS, AJAX, Dreamviewer, SQL Server, MY SQL, MS Access, Flex, Flash, Photoshop etc. for 8+ y Mais

\$111 USD in 2 dias
(6 Comentários)
3.2
LimbicINC

A proposal has not yet been provided

\$155 USD in 3 dias
(1 Comentário)
0.0
skilledMYNAS

Applying with lowest possible bid because i am a fresh recruit here in order to proof my talent and skills here. I am serious to earn my living via Freelancer , Hope I would get this project to make a start . and your Mais

\$136 USD in 3 dias
(0 Comentários)
0.0
INCtechnology

Hi we have done many game and apps [url removed, login to view] [url removed, login to view] [url removed, login to view] Mais

\$144 USD in 3 dias
(0 Comentários)
0.0
vibrant5

We are startup company having 15 Developers with multi-skills experts worked abroad for Top 100 Fortune companies. Now,i assure you that,as per your expectation ,we can deliver you quality work for your New website fr Mais

\$155 USD in 3 dias
(0 Comentários)
0.0
lophie

Hi, I can easily do this for you in one day or less. for the minimum of your budget! Well hit me up if you are interested.

\$30 USD em 1 dia
(0 Comentários)
0.0