Em Andamento

class Rational

define a class for rational [url removed, login to view] rational numbers of two values type int, one for the numerator and one for the [url removed, login to view] the class Rational. Include a constructor with two arguments that can be used to set the member variables of an object to any legitimate [url removed, login to view] include a constructor that has only a single parameter of type int; call this single parameter wholeNumber and define the constructor so that the object will be initialized to the rational number wholenumber/[url removed, login to view] a default constructor that intializes an object to 0 (that is, to 0/1).Overload the input and output operators >> and <<.Numbers are to be input and output in the form 1/2, 15/32, 300/401, and so [url removed, login to view] that the numerator, the denominator, or both may contain a minus sign, so -1/2, 15/-32, and 300/-401, are also possible [url removed, login to view] all of the following operators so that they correctly apply to type rational:==,<=,>,>=,+,-,*, and/.

Write a test program to test your [url removed, login to view] include a function to normalize the values stroed so that, after normalization, the denominator is positive and the numerator and denominator are as small as possible.

## 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

C++

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

Ver mais: forth programming, define functional programming, define programming, programming operators, programming define, normalization, input positive numbers, test numbers call, program positive numbers, set single sign, rational numbers program, rational number program, rational number , input form output, normalization code, int call, overload site

Acerca do Empregador:
( 1 comentário ) United States

ID do Projeto: #3001480

Premiar a:

panthomakos

See private message.

$5 USD em 6 dias
(2 Avaliações)
0.7

2 freelancers estão ofertando em média $7 para este trabalho

rebuildingteam

See private message.

$8.5 USD in 6 dias
(20 Comentários)
3.5