Em Andamento

Short Decimal to Fraction Converting Program

I need a simple program that converts a user entered decimal into a fraction in C++ format.

The program will first prompt for and accept the decimal fraction. It must be between 0 and 1. If the user enters a number not between 0 and 1 it should repromt the user and reaccept a value.

Next ask a user for a denominator of the fraction they want to use. An integer between 2 & 300. If the user enters a number not between 2 and 300 it should repromt the user and reaccept a value.

Now I need a loop to try all the fractions with the desired denominator and remember the best one. For example, if the user enters 5 as the denominator, and .55 as the decimal fraction, the loop will calculate 1/5, 2/5, 3/5, 4/5, and 5/5. It will compare each to the desired value of .55 and, for each, will decide if the new value is better than the previous best value. Now it should try to reduce the fraction if at all possible.

Lastly it should prompt the user, and ask if they would like to try another decimal.

I would like each part to be done in separate functions. This should be a fairly easy program and would like it done very basically with nothing fancy

## Deliverables

1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.

2) Installation package that will install the software (in ready-to-run condition) on the platform(s) specified in this bid request.

3) Exclusive and complete copyrights to all work purchased. (No GPL, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site).

## Platform

Windows XP

Habilidades: Programação C, Engenharia, MySQL, PHP, Arquitetura de software, Teste de Software

Ver mais: programming loop, loop programming, for loop in c programming, 0 1 integer programming, integer programming, simple program example, short programming, short program, programming short, short 300, simple program software, simple program code, 300 program, simple loop program, short php form, short form, short code, php loop form, Fractions, Fraction, converting php code, converting code code, php simple loop, converting site php, converts code

Acerca do Empregador:
( 3 comentários ) United States

ID do Projeto: #2983579

Premiar a:

teamvw

See private message.

$7 USD em 1 dia
(36 Avaliações)
3.8

11 freelancers are bidding on average $12 for this job

mihaiscortaru

See private message.

$20.88 USD em 1 dia
(160 Comentários)
6.0
mikemozhaev

See private message.

$8.5 USD em 1 dia
(21 Comentários)
5.0
shahizanvw

See private message.

$7.65 USD em 1 dia
(46 Comentários)
4.6
vw821235vw

See private message.

$11.05 USD em 1 dia
(94 Comentários)
4.3
lalesculiviu

See private message.

$21.25 USD em 1 dia
(18 Comentários)
4.2
dnave

See private message.

$17 USD em 1 dia
(21 Comentários)
4.0
bullsora

See private message.

$17 USD em 1 dia
(25 Comentários)
4.0
abhimanyuvw

See private message.

$5.1 USD em 1 dia
(32 Comentários)
3.7
mixelvw

See private message.

$8.5 USD em 1 dia
(32 Comentários)
3.7
melswidi

See private message.

$4.25 USD em 1 dia
(5 Comentários)
1.5