Super Easy 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.

It also has a text below!!

Habilidades: Java

Ver mais: simple algorithm example, program algorithm example, java obtain, find a program, combined result, algorithm for game, java to objective c, game gui, game algorithm, Easy Java, easy java a, java program simple, easy game java, java program simple game, java gui program easy program, input program gui, java output number combinations, easy card game program java, simple java program game, objective simple game, user input java gui, java gui text, simple java game program gui, java gui game, multiplication algorithm

Acerca do Empregador:
( 10 comentários ) Lake Grove, United States

ID do Projeto: #6819572

Premiar a:


We can deliver this 24 Game Java application well under 48 hours, please reply, thank you !

$55 USD em 2 dias
(29 Avaliações)

6 freelancers are bidding on average $103 for this job


Предложение еще не подано

$55 USD in 3 dias
(1 Comentário)

Aucune proposition n'a encore été fournie.

$38 USD em 1 dia
(1 Comentário)

Our main purpose is to gain the satisfaction of customer and provide the customer a quality product. We are highly motivated and passionate to deal you. We work on only one project at a time so that we will be able to Mais

$255 USD in 2 dias
(0 Comentários)

Good Evening. I can implement the 24 game. I believe I can send you a first version within the next 24 hours. I'm new here however I'm hardworking and I've studied similar puzzles before. Please write me back. Mais

$88 USD in 3 dias
(0 Comentários)

Hi, dear. Nice to meet you. I read your job description. I think it is useful for intellectual development, especially for young kids. I will help you and complete this job. You will never waste your time and Mais

$127 USD in 2 dias
(0 Comentários)